Solved

What Is the Output of the Following C++ Code? Int \quad

Question 25

Multiple Choice

What is the output of the following C++ code? int x = 55;
Int y = 5;
Switch (x % 7)
{
Case 0:
Case 1:
\quad Y++;
Case 2:
Case 3:
\quad Y = y + 2;
Case 4:
\quad Break;
Case 5:
Case 6:
\quad Y = y - 3;
}
Cout << y << endl;


A) 2
B) 5
C) 8
D) 10

Correct Answer:

verifed

Verified

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

Related Questions