This is an old revision of this page, as edited by 86.153.9.140 (talk) at 22:06, 19 August 2007 (coherence). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 22:06, 19 August 2007 by 86.153.9.140 (talk) (coherence)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)GOSUB is a command in many versions of BASIC. GOSUB statements branch to simple kinds of subroutines without (sometimes with) parameters or local variables, the RETURN command resuming program flow from the point at which GOSUB was invoked.
The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. It is not implemented in all versions of BASIC, which can lead to cumbersome GOTO loops.
This programming-language-related article is a stub. You can help Misplaced Pages by expanding it. |