Multiple Choice
Given the following function:
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 segment that invokes calc() :
Int x = 1;
Int y = 2;
Int 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) 2 3 4 5
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: This is a dummy function that is
Q21: This function causes a program to terminate,
Q22: When used as parameters, these types of
Q23: A _ variable is declared outside all
Q24: A function's return data type must be
Q26: If a function does not have a
Q27: Global variables are initialized to zero by
Q28: Which line in the following program
Q29: Which line in the following program
Q30: You may use the exit() function to