What is diffrence between ( continue; ) and ( break; )? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

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

(At the end of the loop statement)

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