Misplaced Pages

GOSUB

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by 85.75.150.221 (talk) at 20:57, 10 March 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 20:57, 10 March 2007 by 85.75.150.221 (talk)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

GOSUB is a command in many versions of BASIC, which should always be accompanied by the RETURN command. GOSUB statements branch to simple kinds of subroutines without (sometimes with) parameters or local variables. It is convenient for performing the same function in BASIC programs without duplicating the same code repeatedly. It is not implemented in all versions of BASIC, which can create cumbersome GOTO loops.

Stub icon

This programming-language-related article is a stub. You can help Misplaced Pages by expanding it.

Categories: