1.

Is a default case necessary in a switch statement?

Answer»

No, it is not VITAL that you have a default case in a SWITCH statement. Although, if no case in your switch is satisfied, the default case can be USEFUL. So, if you're unsure about the outcome, it's ADVISED that you mention a default case.



Discussion

No Comment Found