The
continue
statement is used to bypass the remainder of the current pass through a loop. The loop does not terminate when a continue
statement is encountered. Rather, the remaining loop statements are skipped and the computation proceeds directly to the next pass through the loop.
The
continue
statement can be included within a for
, a while
or a do-while
statement.
The
continue
statement is written simply as:
without any embedded expressions or statements.
The
continue
is a keyword in the C++ program and the semicolon must be inserted after the continue
statement.
0 comments:
Post a Comment