Variables visibility and lifetime

Variable is visible throughout the program or its subroutine (i.e. in the bounds of particular source code file). To share a variable between different programs/subroutines pass them as parameters in CALL statement or use a named or unnamed COMMON.

All variables (except ones in COMMON areas) are reset (i.e. become unassigned) upon program end.

See also: SUBROUTINE, ASSIGNED, UNASSIGNED.

Last update: Sat, 16 Jul 2022 15:34