How is the break statement different from continue statement?Explain with a example.
Answers
Answered by
1
Explanation:
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. ... A continue inside a loop nested within a switch causes the next loop iteration.
Similar questions
Physics,
4 months ago
Chemistry,
4 months ago
English,
9 months ago
Computer Science,
9 months ago
Computer Science,
1 year ago