0 votes
4.2k views
asked in C++ by (4k points)
What is the effect of absence of break in switch case in C++ ?

1 Answer

0 votes
answered by (8.2k points)

     The break keyword causes the entire switch statement to exit, and the control is passed to statement following the switch.. case construct. Without break, the control passes to the statements for the next case. The break statement is optional in switch..case construct.

Categories

...