C | Loops & Control Structure | Question 14
Predict the output of the below program:
(A) Outside GeeksQuiz
(C) Nothing gets printed
Explanation: In a switch block, the control directly flows within the case labels(or default label). So, statements which do not fall within these labels, Outside is not printed. Please take a closer look at the default label. Its defau1t, not default which s interpreted by the compiler as a label used for goto statements. Hence, nothing is printed in the above program.
Quiz of this Question