6.8.6.2 The continue statement

Previous Table of Contents

1778 A continue statement shall appear only in or as a loop body.

1779 A continue statement causes a jump to the loop-continuation portion of the smallest enclosing iteration statement;

1780 that is, to the end of the loop body.

1781 More precisely, in each of the statements


while (/* ... */) {    do {                        for (/* ... */) {
   /* ... */                  /* ... */                   /* ... */
   continue;                  continue;                   continue;
   /* ... */                  /* ... */                   /* ... */
contin: ;                  contin: ;                   contin: ;
}                         } while (/* ... */);     }

unless the continue statement shown is in an enclosed iteration statement (in which case it is interpreted within that statement), it is equivalent to goto contin;.135)

Next

Created at: 2005-06-29 02:19:03 The text from WG14/N1124 is copyright © ISO