- C Programming Basics
- C Tutorial
- C Program Structure
- C Basic Syntax
- C Data Types
- C Constants
- C Variables
- C Operators
- C Ternary Operator
- C Storage Classes
- C Flow of Control
- C Decision Making
- C if if-else Statement
- C switch Statement
- C Loops
- C for Loop
- C while Loop
- C do-while Loop
- C goto Statement
- C break Statement
- C continue Statement
- C Popular Topics
- C Arrays
- C Strings
- C Pointers
- C Functions
- C Recursion
- C Scope Rules
- C Programming Advance
- C Structures
- C Unions
- C Bit Fields
- C Enumerations
- C Input & Output
- C Typedef
- C Preprocessors
- C Type Casting
- C Recursion
- C Error Handling
- C Linked Lists
- C Stacks
- C Queues
- C Binary Trees
- C Header Files
- C File I/O
- C Variable Arguments
- C Memory Management
- C Command Line Arguments
- C Programming Examples
- C Programming Examples
- C Programming Test
- C Programming Test
C continue Statement
In C language, the continue statements work just opposite to the break statement. That is, instead of forcing termination, continue forces the next iteration of the loop to take place, skipping any code remains after the continue statement. Let's go through the following program to understand the continue statement.
C continue Statement Example
Here is the example program that uses the continue statement in C programming.
/* C continue Statement Example * This program illustrates * the concept of break statement in C */ #include<stdio.h> #include<stdlib.h> #include<conio.h> void main() { int i; int num = 2; clrscr(); for(i=1; i<50; i++) { printf("%d * %d = %d\n", num, i, num*i); if(i>0 && i<10) continue; else printf("\npress any key to exit..\n"); getch(); exit(1); } getch(); }
This program also prints the table of 2. Here is the sample output of above continue statement program in C language.

« Previous Tutorial Next Tutorial »
Follow/Like Us on Facebook
Subscribe Us on YouTube