Copyright © 1996, 1997 Lucent Technologies Inc. All rights reserved.

9.10 continue statement

The continue statement


continue identifieropt ;
restarts execution of while, do, and for statements. Execution of continue with no identifier transfers control to the end of the innermost while, do, or for statement in which the continue appears as a substatement. The expression that controls the loop is tested and if it succeeds, execution continues in the loop. The initialization portion of for is not redone.

Similarly, execution of continue with an identifier transfers control to the end of the enclosing while, do, or for labeled with the same identifier.

05/Jun/97