Consider the function, where the programmer inadvertently left out the ampersand in the definition of parRef. What is the output of the code?
```
void doStuff(int parValue, int parRef)
{
parValue = 100;
<< “parValue in call to doStuff = “
<< parValue << endl;
parRef =222;
cout << “parRef in call to doStuff = “
<
}
and consider the call, which we assume is in a complete and correct program
int n1 = 1, n2 =2;
doStuff(n1, n2);
cout << “n1 after call to doStuff = “ << n1 <
a. parValue in the call to doStuff = 100;
parValue in the call to doStuff = 222;
n1 after function call = 1;
n2 after function call = 222
b. parValue in the call to doStuff = 100;
parValue in the call to doStuff = 222;
n1 after function call = 1;
n2 after function call = 2
c. x parValue in the call to doStuff = 100;
parValue in the call to doStuff = 222;
n1 after function call = 100
n2 after function call = 2
d. parValue in the call to doStuff = 100;
parValue in the call to doStuff = 222;
n1 after function call = 100
n2 after function call = 222
b. parValue in the call to doStuff = 100;
parValue in the call to doStuff = 222;
n1 after function call = 1;
n2 after function call = 2
You might also like to view...
In a sequential search, how many key comparisons would have to be made on the list in the accompanying figure to find the number 5?
A. 4 B. 5 C. 7 D. 8
What is the difference between a managed policy setting and an unmanaged policy setting?
What will be an ideal response?
?In a user interface design with a(n) _____ system, users select what they want to do from a list of alternatives.
Fill in the blank(s) with the appropriate word(s).
Define an integer and then list and describe the four integer data data types.
What will be an ideal response?