0
Why do we need break many times in switch statements
4 Respuestas
+ 8
break; represents the end of every case. So, a break; statement is used at the end of every 'case'. If you don't use break; at the end of a 'case', the next 'case' will also be executed.
+ 3
Break after each case so you dont get all the cases printed to the screen.
+ 1
In order to avoid fall through condition.
Because if we don't use break the program will terminate each and every case in one go.
0
umm. to make code work?