Multiple Choice
Given the following code segment, what is the output?
int x = 1, y = 1, z = 1;
y = y + z;
x = x + y;
cout << "result = " << (x < y ? y : x) << endl;
A) result = 0
B) result = 1
C) result = 2
D) result = 3
E) there will be no output
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: The following code correctly determines whether x
Q3: Both of the following if statements
Q4: The conditional operator takes two operands.
Q5: This statement uses the value of a
Q6: If you intend to place a block
Q7: If you place a semicolon after the
Q8: Given the if/else statement:<br>If (a < 5)<br>B
Q9: These operators connect two or more relational
Q10: What is the value of donuts
Q11: What is the value of the following