.jpg)
goto statement
Sign in to saveAlso known as GOTO, GO TO, go to, unconditional jump, goto
thumb|right|upright|"GOTO" key on the 1982 ZX Spectrum home computer, implemented with native [[BASIC (one-key command entry).]]
In the Vinony graph
Vinony's link graph records 275 inbound references to goto statement, and connects out to control flow, program loop and tail recursion.
Vinony files it under BASIC commands, Control flow and Edsger W. Dijkstra.
Vinony links it to 27 Wikipedia language editions.
Wikidata facts
- Instance of
- keyword
- Image
- GOTOkey(ZXSpectrum).jpg
Show 5 more facts
- opposite of
- COMEFROM
- different from
- GoTo
- Stack Exchange tag
- stackoverflow.com/tags/goto
- uses
- label
- used by
- spaghetti code
Sources (2)
via Wikidata · CC0
~22 min read
Encyclopedic overview
18 sectionsContents
- Language support
- Computed and assigned{{anchor |computed-goto}}{{anchor |assigned-goto}}
- ALTER
- Perl goto
- Emulated goto
- PL/I label variable
- Examples
- Criticism<!--'Go To Statement Considered Harmful' redirects here-->
- More accepted patterns
- Alternatives
- Structured programming
- Exception handling
- Tail call
- Coroutine
- Continuation
- See also
- Notes
- References
thumb|right|upright|"GOTO" key on the 1982 ZX Spectrum home computer, implemented with native [[BASIC (one-key command entry).]]
In computer programming, goto is a control flow statement that transfers control to another line of source code. Unlike a function call that supports returning to the point of call, goto does not. The statement is denoted differently by programming language; some use lowercase (), some use uppercase (), and others are case-insensitive. A few languages make the statement two words (i.e. ).
Excerpted from Wikipedia’s “goto statement” article, available under the CC BY-SA 4.0 licence.