The break statement, when used inside a loop, immediately exits the loop and transfers control to the statement following the loop.
It does not terminate the entire program, only the current loop.
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.