The break statement has two uses. You can use it to terminate a case in the switch statement. You can also use it to force immediate termination of a loop, bypassing the normal loop conditional test. When the break statement is encountered inside a loop, the loop is immediately terminated and the program continues to execute the statement that follows the loop. The format of break statement and a simple example is shown in the figure.

discuss this topic to forum
