Advertisement
Advertisement
/* C - continue statement example */
#include<stdio.h>
int main() /*main method and program begins here */
{
for(int i=0;i<5;i++)
{
if(i==2)
continue;
printf("i = %d \n", i);
}
printf("Out of the loop");
return 0;
} /* main method ends and so does the program */
i = 0
i = 1
i = 3
i = 4
Out of the loop
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement