RETURN: exit a subroutine or a function before the END is reached
⇒Home
⇒Contents
⇒more on Programming
⇒ Example of a RETURN call in "Greatest_common_divisor" (RosettaCode)
RETURN transfers control from a subprogram to the calling program unit
when a RETURN is executed in a
FUNCTION
, control is transferred to the referencing statement in the calling procedure.
when a RETURN is executed in a
SUBROUTINE
, control is transferred to the first statement following the
CALL
statement that invoked the SUBROUTINE.
How your donation will be used, and how to get a HicEst key code in return
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.
Impressum