4
Answers

Break and goto

Maha

Maha

11y
925
1
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)