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:
Verified
Q24: The _ of relational and logical operators
Q25: When one control statement is located within
Q26: Assume you have three int variables: x
Q29: What is the value of x after
Q29: Consider the following statements.
int score;
string grade;
if (score
Q33: Once an input stream enters a(n) _
Q33: What is the output of the following
Q34: Putting a semicolon after the parentheses following
Q36: Which of the following will cause a
Q39: The value of the expression 7 +
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents