What is the output of the following C++ code? int x = 55;
Int y = 5;
Switch (x % 7)
{
Case 0:
Case 1:
Y++;
Case 2:
Case 3:
Y = y + 2;
Case 4:
Break;
Case 5:
Case 6:
Y = y - 3;
}
Cout << y << endl;
A) 2
B) 5
C) 8
D) 10
Correct Answer:
Verified
Q22: Putting _ in front of a logical
Q25: The conditional operator ?: takes _ arguments.
A)
Q25: When one control statement is located within
Q28: To develop a program,you can use an
Q28: What is the output of the following
Q29: What is the value of x after
Q33: What is the output of the
Q34: The symbol > is a(n)_ operator.
Q36: Which of the following will cause a
Q40: For a program to use the assert
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