continue statement

From cppreference.com
< c‎ | language

Causes the remaining portion of the enclosing for, while or do-while loop body to be skipped.

Used when it is otherwise awkward to ignore the remaining portion of the loop using conditional statements.

Syntax

continue ;

Explanation

The continue statement causes a jump, as if by goto, to the end of the loop body (it may only appear within the loop body of for, while, and do-while loops).

For while loop, it acts as

while (/* ... */) {
   // ... 
   continue; // acts as goto contin;
   // ... 
   contin:;
}

For do-while loop, it acts as:

do {
    // ... 
    continue; // acts as goto contin;
    // ... 
    contin:;
} while (/* ... */);

For for loop, it acts as:

for (/* ... */) {
    // ... 
    continue; // acts as goto contin;
    // ... 
    contin:;
}

Keywords

continue