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

Verified
Correct Answer:
Verified
Related Questions
Q25: Whereas < is called a relational operator,
Q32: Without this statement appearing in a switch
Q35: x <= (y * 2)<br>A) 3, 4,
Q36: Which statement allows you to properly check
Q37: After execution of the following code,
Q39: What will the following program display?
Q40: This operator represents the logical AND:<br>A) ++<br>B)
Q41: What is the value of the following
Q44: What is the output of the
Q47: If the sub-expression on the left side