0

If i understand correctly, continue skips all the lines of the loops current iteration and starts again from the top whereas break exits the loop. Is this correct?

1 Answer 1

0

Correct, and keep in mind that in nested loops, continue and break will only continue or break the innermost loop.

Article on continue vs break

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .