Answer:
Following are the important differences between continue and break.
Break: 1- Break statement mainly used to terminate the enclosing loop such as while, do-while, for or switch statement wherever break is declared.
2- Break statement resumes the control of the program to the end of loop and made executional flow outside that loop.
3- As mentioned break is used for the termination of enclosing loop.
4- Break statement can be used and compatible with ‘switch’, ‘label’.
Continue: 1- Continue statement mainly skip the rest of loop wherever continue is declared and execute the next iteration.
2- Continue statement resumes the control of the program to the next iteration of that loop enclosing ‘continue’ and made executional flow inside the loop again.
3- On other hand continue causes early execution of the next iteration of the enclosing loop.
4- We can’t use continue statement with ‘switch’,’lablel’ as it is not compatible with them.