Important MCQ

The break statement in a switch

Q.The break statement in a switch

A) skips default
B) ends the program
C) exits the switch
D) restarts the switch
Correct Answer:
Option C
Detailed Explanation:
C) exits the switch is correct. switch performs multi-way selection using integral or enum-like values such as int and char. Case labels are constants; break exits the switch, while missing break can cause fall-through.