Solved

What Is the Output of the Following Code?
Int W \quad

Question 38

Multiple Choice

What is the output of the following code?
int w = 98;
int x = 99;
int y = 0;
int z = 1;
if (x >= 99)
{
\quad if (x < 99)
\quad\quad cout << y << endl;
\quad else
\quad\quad cout << z << endl;
}
else
{
\quad if (x == 99)
\quad\quad cout << x << endl;
\quad else
\quad\quad cout << w << endl;
}


A) 98
B) 99
C) 0
D) 1
E) None of these

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions