✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the output of the following program?
void f(int& x, int& y, int z) {
if (x > y) x = z;
else y = z;
}
int main() {
int a = 1, b = 2, c = 3;
f(a, b, c);
f(a, c, b);
cout << a << ' ' << b << ' ' << c << '\n';
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!