Multiple Choice
Given that x = 2, y = 1, 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
Q41: The default section of a switch statement
Q42: When a program lets the user know
Q43: What is the output of the following
Q44: An expression that has any value other
Q45: What is the output of the following
Q46: The _ is an equality (or comparison)
Q47: When a relational expression is False, it
Q48: If the expression on the left side
Q49: What is assigned to the variable result
Q50: What is the value of donuts