b) Explain the significance of break and continue
Answers
Answered by
3
Answer:
The one-token statements continue and break may be used within loops to alter control flow; continue causes the next iteration of the loop to run immediately, whereas break terminates the loop and causes execution to resume after the loop. Both control structures must appear in loops.
Answered by
1
Answer:
Difference Between break and continue
break continue
When a break statement is encountered, it terminates the block and gets the control out of the switch or loop. When a continue statement is encountered, it gets the control to the next iteration of the loop.
Similar questions