+ 1

Switch statements question

What is the point of adding all these unnecessary cases in a switch statement if there is only or none that match?

24th Dec 2017, 10:13 PM
Angshu Adhya
Angshu Adhya - avatar
1 Antwort
+ 3
what ? if have one case u dont need any decisions making statements, its just in case u have multiple situation, so you tell the compiler what to do in each situation
24th Dec 2017, 10:16 PM
Maher Zaidoune
Maher Zaidoune - avatar