The break statement can be used in 3 ways: 1) break is used inside a loop to come out of it. 2) break is used inside the switch block to come out of the switch block. 3) break can be used in nested blocks to go to the end of a block.
No comments:
Post a Comment