break statement
break statement
Break statement is used in switch statement or loop statement only. It is for exiting switch statement or local loop and directing to the subsequent program. As the transferring direction of break statement is specific, the statement marks are not required. The general form of break statement is break. As shown in the above example, the break statement is used in switch statement and for statement for skip. Break statement provides several exits for loop statement, which makes programming more flexible and convenient in some circumstances.