What are the final values of m and n

Assignment Help Basic Computer Science
Reference no: EM13307686

Consider the following c++ program
using namespace std;
void f(int x,int y,int z){
x=1;
z=x+y;
}
main()
{int m=2,n=1;
f(m,m,n);
}
what are the final values of m and n if all parameters of f(x,y,and z) are passed by
1)value result(valaues copied left-to-right) answer: m=2, n=3
2)value result (values copied right-left) answer : m=1, n=3
3) name answer m=1 n=2
i know answer but i dont get how they get the answers if you could explain?

Reference no: EM13307686

Questions Cloud

How value parameters useful in processing data in a program : Discuss some useful applications for n-dimensional arrays, such as graphical 3-D or biotechnology applications.
Find the integral in a table of integrals : Finding the integral in a table of integrals is not sufficient justification- for correctly and clearly demonstrating why.
Determine what volume of naocl will be needed : An electric power plant consumes 2.5 million gallons per day of cooling water. To control bacterial growth (slime), 2.0 mg/L of chlorine (measured as Cl2) is injected into the make-up water fed to the system.
Find the focal length of the objective : The objective lens in a microscope with a 25.0 cm long tube has a magnification of -50.0 and the eyepiece has a magnification of20.0. What is the focal length of the objective
What are the final values of m and n : what are the final values of m and n if all parameters of f(x,y,and z) are passed by.
What is the magnitude of the net electrostatic force : A particle of charge 1.2mC is located 1mm inside of uniform charge of 3.2mC that has an inner radius of 5.0cm, What is the magnitude of the net electrostatic force on the particle
Write the code segment needed to set the data variable : Write the code segment needed to set the data variable to 25, and the tag string to "Hello World".
Provide the engineering judgement to justify the shipment : The pressure inside the cylinder is 50 atm and temperature is 298o K. Provide your engineering judgement (with calculations) to justify or not justify the shipment of the cylinder.
Define a function that takes argument in name of a csv file : Define a function that takes an argument in the name of a CSV file. This file can have any number of rows. Each row has exactly 10 words separated by comma. Your function should print the total number of four letter words in the file.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining smartphones as important digital devices

Many resources will suggest that in the next few coming years, smartphones will become the one of the most important digital devices we own. Explain the implications of this statement.

  What would the data dictionary

what would the data dictionary look like for question 5a pg. 88

  Describes the benefits of getting a college education

Change the Font style and Font size of the numbers in the Worksheet and change the Row and Column headins to Bold Font.

  How linear program the problem of finding the maximum profit

Formulate as a linear program the problem of finding the maximum profit weekly production mix. Solve the linear program from Part A using the Simplex method.

  Diagnos application which has changed from original state

How does third-party plug-ins change process of diagnosing and troubleshooting errors within application? What steps would you take in diagnosing the application which has been changed from its original state?

  How entry level manager adjust able to grow into upper level

How do you think an entry level manager has to adjust to be able to grow into an upper level manager

  Determine minimum number of tapes needed for backups

Days of the week (including the weekend), determine the minimum number of tapes needed to accommodate seven days worth of backups?

  Secure windows-unix-linux servers from known shortcoming

The CIO has asked you to explain why you suggest it is so significant to secure your Windows and Unix/Linux servers from known shortcomings/vulnerabilities.

  Four ring architecture of operating systems

Opinion regarding what security benefit(s) would be seen if modern operating systems followed four ring architecture.

  What will occur to supply-demand in short-term and long-term

Price of product in short-term and long-term also describe why you think supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.

  What steps can an organization take to reduce these risks

Examine possible risks that can arise when systems are constructed using COTS. What steps can an organization take to reduce these risks?

  Write method called swappairs accepts string as parameters

Write a method called swapPairs that accepts a String as a parameter

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd