1.

What Is A Break Statement And What Is It Used For?

Answer»

The break is a KEYWORD and is used WHENEVER we want to jump out of a loop instantly without WAITING to get back to the control command.

When the keyword break is encountered inside any loop in the program, control will get passed automatically to the first statement after a loop. A break is generally ASSOCIATED with an if.

The break is a keyword and is used whenever we want to jump out of a loop instantly without waiting to get back to the control command.

When the keyword break is encountered inside any loop in the program, control will get passed automatically to the first statement after a loop. A break is generally associated with an if.



Discussion

No Comment Found