+ 1

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

(At the end of the loop statement)

6th Sep 2018, 2:45 PM
Grey
1 Réponse
+ 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