6.8.6.2 The continue statement

Previous Table of Contents "New C Standard" commentary

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

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

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

1795 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: 2008-01-30 02:39:44 The text from WG14/N1256 is copyright © ISO