What is diffrence between ( continue; ) and ( break; )? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is diffrence between ( continue; ) and ( break; )?

(At the end of the loop statement)

6th Sep 2018, 2:45 PM
Grey
1 Answer
+ 3
Break leaves the loop completely and executes the statements after the loop. Whereas Continue leaves the current iteration and executes with the next value in the loop. ... A continuestatement is used to end the current loop iteration and return control to the loop statement.
6th Sep 2018, 3:26 PM
Mayur Shedage
Mayur Shedage - avatar