The Goto Statement
The goto statement simply moves the flow of control over to some label. e.g. ... Hello: ... goto Hello ... Goto will execute an unconditional jump to the destination. In order to place a condition on the jump it could be wrapped inside an if statement. Disadvantages of Goto
Goto should not really be used in programs at all. They have a tendancy to make code unstructured and they make programs difficult to manage when they become significantly large. It is much better practice to use the other flow control constructs and procedures.
Table of contents