What will happen if we do not use the break statement at the end of each case block of a switch case construct? Explain.
Answers
Answered by
1
Answer:if we do not add break statement,all the case statements merges in your output
Explanation:
Answered by
1
Switch case statements are used to execute only specific case statements based on the switch expression. If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.
Similar questions