\t\t\tTaskIt terminates the execution of remaining iteration of the loop.It terminates only the current iteration of the loop.Control after break/continue\'break\' resumes the control of the program to the end of loop enclosing that \'break\'.\'continue\' resumes the control of the program to the next iteration of that loop enclosing \'continue\'.CausesIt causes early termination of loop.It causes early execution of the next iteration.Continuation\'break\' stops the continuation of loop.\'continue\' do not stops the continuation of loop, it only stops the current iteration.Other uses\'break\' can be used with \'switch\', \'label\'.\'continue\' can not be executed with \'switch\' and \'labels\'.\t
1.

Differentiate between break and continue statement

Answer» Basis for Comparison break continue


Discussion

No Comment Found