Hello friends!!!!!

C break statement

C LANGUAGE

10/16/20241 min read

The break is a keyword in C which is used to bring the program control out of the loop. The break statement is used inside loops or switch statement. The break statement, breaks the loop one by one, i.e., in the case of nested loops, it breaks the inner loop first and then proceeds to outer loops. The break statement in C can be used in the following two situations.

Syntax:

//loop or switch case

break;