Solved

What Is the Output of the Following C++ Code? Int

Question 11

Multiple Choice

What is the output of the following C++ code? int x = 35;
Int y = 45;
Int z;
If (x > y)
Z = x + y;
Else
Z = y - x;
Cout << x << " " << y << " " << z << endl;


A) 35 45 80
B) 35 45 10
C) 35 45 -10
D) 35 45 0

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions