C++ Continue

C++ continue Statement

The continue statement forces to iterate the loop instantly without executing the next statement of the loop. Sometimes it is required to skip certain test condition within the loop, in such case continue statement is applied.

When continue statement is applied inside the nested loop, it only affects (iterate) the inner loop.

Syntax

Example

Output:

Leave a Comment