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
Correct Answer:
Verified
Q1: As a rule of style, when writing
Q9: You should be careful when using the
Q40: What is the value of donuts
Q41: Which value can be entered to
Q42: If the sub-expression on the left side
Q43: Both of the following if statements perform
Q45: The following code correctly determines whether x
Q46: What will be the value of
Q46: Which of the following expressions will determine
Q53: If the sub-expression on the left side
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