Next: The goto Statement
Up: Control Statements
Previous: The break Statement
This is similar to break but is encountered less frequently.
It only works within loops where its effect is to force an immediate jump to the loop control statement.
Like a break, continue should be protected by an if statement.
You are unlikely to use it very often.
- In a while loop, jump to the test statement.
- In a do while loop, jump to the test statement.
- In a for loop, jump to the test, and perform the iteration.