Multiple Choice
Given the following function definition
void calc (int a, int& b)
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
What is the output of the following code fragment that invokes calc?
(All variables are of type int)
x = 1;
y = 2;
z = 3;
Calc(x, y) ;
Cout << x << " " << y << " " << z << endl;
A) 1 2 3
B) 1 6 3
C) 3 6 3
D) 1 14 9
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q5: The value in this type of local
Q7: Look at the following function prototype. int
Q9: What is the output of the
Q18: A function _ eliminates the need to
Q19: It is possible for a function to
Q24: A function's return data type must be
Q29: This is a dummy function that is
Q31: This is a collection of statements that
Q34: A function is executed when it is<br>A)
Q40: A parameter is a special purpose variable