Advertisements
Advertisements
Question
What will happen if break statement is not used in a switch case? Explain.
Answer in Brief
Solution
In a switch statement, the break statement ends the block. If the break is not utilised, the control will continue to execute further cases within the switch block (fall through occurs).
shaalaa.com
Is there an error in this question or solution?