Multiple Choice
Given that x = 2, y = 1, and z = 0, what will the following cout statement display? cout << "answer = " << (x || !y && z) << endl;
A) answer = 0
B) answer = 1
C) answer = 2
D) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: Which value can be entered to
Q15: What will the following segment of
Q17: This statement lets the value of a
Q18: What is the value of the following
Q20: When an if statement is placed within
Q21: What is the value of donuts
Q22: If you place a semicolon after the
Q26: This operator performs a logical NOT operation.<br>A)--<br>B)!<br>C)<><br>D)><<br>E)None
Q39: What is assigned to the variable a
Q44: An expression that has any value other