Important MCQ

Output? int x = 10; switch (x) { case 1: cout << "A"; break; case 2: cout << "B"; break; } cout << "End";

Q.Output? int x = 10; switch (x) { case 1: cout << "A"; break; case 2: cout << "B"; break; } cout << "End";

A) A
B) End
C) AEnd
D) Error
Correct Answer:
Option B
Detailed Explanation:
No match and no default.