When a subprogram (or routine, or function) has completed its task it must transfer control back to the calling program, which can only continue from its calling position. This is generally done by a return (or exit) statement in the subprogram. A subprogram may have more than one return instruction.

Related terms

Term sub categories