+ 1

What happens if I do not use break in c++ switch statement

need urgent reply

6th Mar 2018, 2:14 AM
ibiang daniel
6 odpowiedzi
+ 3
rest of the cases will get executed..
6th Mar 2018, 2:58 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
There might be a chance that your code will generate some unexpected outputs.
24th Mar 2018, 12:12 PM
####
#### - avatar
+ 1
The rest of the cases get executed after the matching case, irrespective of them being true or not! https://www.sololearn.com/learn/CPlusPlus/1618/
6th Mar 2018, 6:50 AM
Naveen Maurya
Naveen Maurya - avatar
+ 1
it join all the case together, without space and execute them at once.
6th Mar 2018, 10:35 AM
Destiny
Destiny - avatar
0
it check the condition and from there the condition which are below to it will be executed if that the condition is not matched also
7th Mar 2018, 2:34 AM
K Sathya
K Sathya - avatar
- 2
plz don't ask fullish things
6th Mar 2018, 11:09 AM
vedank pachkawade
vedank pachkawade - avatar