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

  Write a select statement that returns four columns

Write a Select statement that returns four columns from the Invoices table, named Number, Total, Credits, and Balance

  What type of malware attack is this

What type of malware attack is this and what vulnerability is she trying to exploit in order to get her malware code past the network firewalls of these companies?

  network structure-Management Information system

Which of the following is true of a network structure? The Management Information system (MIS) structure with one main computer system is called a

  Describe when you would want to use double hashing

Briefly describe when you would want to use double hashing. Also, provide an example of a rule that can be used for a double hashing probe sequence.

  Create a hierarchy chart depicting the chosen situation

Create a hierarchy chart depicting the chosen situation, develop a flowchart and provide a brief explanation for it and develop an algorithm and provide a brief explanation for it.

  Web authoring tools and other software

Web authoring tools and other software

  Receiver initiated distributed scheduling algorithms

Receiver initiated distributed scheduling algorithms suppose task pre-emption at the sender site.

  Http server may initiate interaction client true or false

In HTTP, a server may initiate an interaction with the client. a)Answer True b)False

  Determine maximum number of telephones end office support

With mean call duration of six minutes. Ten percent of calls are long distance. Determine the maximum number of telephones an end office can support?

  Determine value of maximum element for mle is maximum

Assume that n = 5 points are drawn from distribution and maximum value of which occurs to be 0.6. Plot likelihood p(D|) in range 0  1. Describe in words why you do not need to know values.

  Explaining relationship of strategic and tactical plans

Descriibe in scholarly detail relationship of strategic, tactical, and operational plans,

  What is projectitis

What is projectitis? How is it cured or its impact minimized?

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