- 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 Library
- C Standard Library
- C Programming Test
- C Programming Test
- Give Online Test
- All Test List
C break Statement
In C programming, the break statement has the following two uses:
- use break statement to terminate a case in the switch statement
- use break statement to force immediate termination of a loop, bypassing the normal loop conditional test
Now let's go through the following example program that illustrates the concept of break statement in C.
C break Statement Example
Here is an example program of that uses the break statement in C programming.
/* C break Statement Example * This program illustrates * the concept of break statement in C */ #include<stdio.h> #include<conio.h> void main() { int i; int num = 2; clrscr(); for(i=1; i<50; i++) { if(i==11) break; printf("%d * %d = %d\n", num, i, num*i); } getch(); }
This program prints the table of 2. Here is the sample run of this program.

You can also use break statement in the switch statement. To see how, refer calculator program.
« Previous Tutorial Next Tutorial »