+ 2
switch case
i can't understand without break statement in switch case.
3 Antworten
+ 6
The keyword break is used to exit the switch block, it tells the compiler to stop comparing values because a match for the case had been found, if you omit the break, compiler will continue processing the next case inside the switch block all the way through.
Hth, cmiiw
+ 6
I hope this may help you
https://code.sololearn.com/cx7H3JX28Rsn/?ref=app
+ 2
Thanks a lot Ipang and =\•_•/=