Multiple Choice
Given the following function definitions and program fragments, what is the output?
Void f1int& z, int &q)
{
Int temp;
Temp=q;
Q=z;
Z=temp;
}
Void f2 int& a, int& b)
{
If a<b)
F1a,b) ;
Else
A=b;
}
Int x=3, y=4;
F2y,x) ;
Cout << x <<" " << y << endl;
A) 3 3
B) 4 3
C) 3 4
D) 4 4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q19: Functions can return at most one value.
Q20: When a void function is called, it
Q21: The values or variables listed in the
Q22: What is wrong with the following function
Q23: A simplified version of a function which
Q25: What is the correct way to call
Q26: A stub is a function that is
Q27: It is acceptable to have both call-by-value
Q28: What is the output of the following
Q29: A _ is a main program that