Maha

Maha

  • NA
  • 0
  • 326.5k

Break and goto

Oct 21 2013 2:18 PM
If we want to break and come out from loop we can either use keyword break or goto. One thing I noticed goto statement enable the execution to come out from loop and we can start the execution at a point where we want. But break statement come out from loop and continue the execution. It can't be used to start the execution at a point where we want.

In other words goto statement is flexible and break statement is not.

Is there any other differences?


Answers (4)