Default’ case is mandatory in a switch statement.
A. True
B. False
This question was addressed to me in an interview for internship.
Enquiry is from Switch Case topic in portion Syntax Directed Definition and Translations of Compiler
The correct option is B. False
The best I can explain: Default cases may or may not be written.