Break keyword in C programming language uses to passes control program execution out of the compound statement.
The break statement is a jump instruction or a program execution control switching keyword that can be used innermost enclosing a switch construct, for loop, while loop and do-while loop. The execution of break statement causes immediate exit from the concern construct and the control is transferred to the statement following the loop. In the loop construct the execution of break statement terminates loop and further execution of the program is reserved with the statement following the body of the loop.
The syntax is simply ‘break’ keyword:
printf(“the value of i reached at 2.”);
the value of i reached at 2.
Attempt Free C Programming MCQ Quiz