Question: Consider the function void doStuff(int parValue, int& parRef) { parValue = 100; cout < < parValue in call to doStuff = < < parValue <

Consider the function void doStuff(int parValue, int& parRef) { parValue = 100; cout << parValue in call to doStuff = << parValue << endl; parRef =222; cout << parRef in call to doStuff = << parRef << endl; } and consider the call, which we assume is in a complete and correct program int n1 = 1, n2 =2; doStuff(n1, n2); Select one: a. The call to doStuff results in the assignment n2 = 222; b. The call to doStuff results in the assignment n2 = 100; c. The call to doStuff results in the assignment n1 = 100; d. There is no effect on either of these variables.. e. The call to doStuff results in the assignment n1 = 222;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!