| goto | Keyword

Keyword Index

Unconditionally transfer control.

`goto` may be used for transfering control from one place to another. The syntax is:

    goto identifier;

Control is unconditionally transferred to the location of a local label specified by identifier. For example,

    Again:
      ...
      goto Again;

Jumping out of scope (for example out of the body of the for loop) is legal, but jumping into a scope (for example from one function to another) is not allowed.
Note: The GNU C extends the usage of `goto` keyword to allow computed goto. Also, it supports local labels, useful in macro definitions.