The continue statement skips the following statements in the compound enclosure.
The continue statement is used with decision making statement such as if...else.
Example:
void main()
{
int i = 0;
while(1)
{
i++;
if(i==2)
continue;
printf("i:%d\n",i);
if(i==5)
break;
}
}
Output:
i:1
i:3
i:4
i:5