gotos
Gotos are a control flow statement that transfers execution to a labeled location within the same program. The transfer is typically unconditional; the destination is a label defined elsewhere in the same function or subroutine. When executed, the program continues from that label as if code had jumped there.
Gotos have a long history in programming. They appear in languages such as C, C++, Fortran and
Semantics vary by language, but common rules apply: the target label must exist in the same scope;
Common uses include centralized error handling and cleanup code, where many exit points can jump to a
Overall, gotos are a low-level feature. When used sparingly and with clear intent, they can simplify certain