What is the output of the following code?
int w = 98;
int x = 99;
int y = 0;
int z = 1;
if (x >= 99)
{
if (x < 99)
cout << y << endl;
else
cout << z << endl;
}
else
{
if (x == 99)
cout << x << endl;
else
cout << w << endl;
}
A) 98
B) 99
C) 0
D) 1
E) None of these
Correct Answer:
Verified
Q16: What is the output of the following
Q17: If the expression on the left side
Q18: After the following code executes, what is
Q19: If you place a semicolon after the
Q20: What is the output of the following
Q22: Which of the following is evaluated first,
Q23: What will be displayed after the
Q24: What is the value of the following
Q25: A variable, usually a bool or an
Q26: What is the output of the following
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