| continue | Keyword

Keyword Index

Passes control to the begining of the loop.

`continue` causes control to pass to the end of the innermost enclosing while, do, or for statement, at which point the loop continuation condition is re-evaluated. The syntax is simply

    continue;

For example,

    for (i = 0; i < 20; i++)
      {
        if (array[i] == 0)
          continue;
        array[i] = 1/array[i];
      }

This example changes each element in the array with its reciprocal, but skips elements which are equal to zero.