continue statement in C++

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.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *