The answer
The continue statement jumps to the update step (e.g., i++), meaning the counter correctly increments before the next iteration begins.
The continue statement jumps to the update step (e.g., i++), meaning the counter correctly increments before the next iteration begins.
It immediately terminates the loop it is inside, preventing any further iterations, and resumes execution below the loop block.
It skips the remaining code in the current iteration and jumps straight to the next iteration of the loop.
No, a standard break only exits the innermost loop it is placed in. To break outer loops, some languages (like Java) support labeled breaks.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.