- C Programming
- C Tutorial
- C Basic Syntax
- C Data Types
- C if...else Statement
- C switch Statement
- C for Loop
- C while Loop
- C do...while Loop
- C Jump Statements
- C Arrays
- C Strings
- C Pointers
- C Functions
- C Recursion
- C Variable Scope
- C Structures
- C Linked Lists
- C Stacks
- C Queues
- C Binary Trees
- C Header Files
- C File I/O
- C Programming Examples
- C Programming Examples
- Computer Programming
- C++ Tutorial
- C++ Examples
- C# Tutorial
- Python Tutorial
- Python Keywords
- Python Built-in Functions
- Python Examples
- Java Tutorial
- Java Examples
- PHP Tutorial
- Web Development
- HTML Tutorial
- CSS Tutorial
- JavaScript Tutorial
- SQL Tutorial
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 »
Follow/Like Us on Facebook
Subscribe Us on YouTube