Break, continue and goto statement in C

tutorial and example
tutorial and example

Break statement

Break statement is used to break the process of loop (while, do while and for) and switch case.

Example 1

Example 2

Continue Statement:

The Continue statement is used to continue the execution of loop. It is used inside if condition. We can use it with while, do while and for loop.

syntax:

Let us takean example:

Goto  Statement

Goto statement is used to transfer the unconditionally program control to a labeled statement. The goto statement has the following syntax:

Goto identifier;

Example: