Continue Statement in C - continue in c



 Continue Statement in C

Learn c - c tutorial - Continue Statement in C - c examples - c programs

Continue Statement in C

  • Break statement in works like the continue statement and the instead of forcing termination the next iteration of the loop to take place skipping any code in C programming.
  • For loop is the conditional check and increment parts of the loop to execute.
 Continue Statement in C

Learn c - c tutorial - Continue Statement in C - c examples - c programs

Sample Code

#include <stdio.h>
int main()
{
    int loop; //loop counter
    for(loop=1; loop<=10; loop++)
    {
        if(loop==7)
        {
            printf("continue...\n");
            continue;
        }
        printf("%d\n",loop);
    }
    printf("BYE BYE!!!\n");
    return 0;
}

Output

1
2
3
4
5
6
continue...
8
9
10
BYE BYE!!!


View More Quick Examples


Related Searches to Continue Statement in C - continue in c