Continue:
- Continue is a keyword.
- Continue is a branching statement.
- Continue skips only current iteration of loop execution where as break completely terminates the loop execution.
#include<stdio.h>
int main()
{
int i;
for(i=1 ; i<=10 ; i++)
{
if(i==5)
{
continue;
}
printf("i value : %d \n", i);
}
return 0;
}
Crack this code:
#include<stdio.h>
int main()
{
int i;
for(i=1 ; i<=10 ; i++)
{
if(i==3 || i==6)
{
continue;
}
printf("i value : %d \n", i);
}
return 0;
}