Q54
What will be the output of the following C++ code? #include using namespace std; void Sum(int a, int b, int & c) a = b + c; b = a + c; c = a + b; int main() int x = 2, y =3; Sum(x, y, y); cout << x << " " << y; return 0;
A.
2 3
B.
6 9
C.
2 15
AnswerD.
compile time error
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board