next up previous contents
Next: Local Objects Up: Program Units Previous: Functions

 

Argument Association

Recall, on the SUBROUTINE slide we had an invocation:

      CALL OutputFigures(NumberSet)
and a declaration,
      SUBROUTINE OutputFigures(Numbers)

NumberSet is an actual argument and is argument associated with the dummy argument Numbers.

For the above call, in OutputFigures the name Numbers is an alias for NumberSet. Likewise, consider,

      PRINT*, F(a,b)

and

      REAL FUNCTION F(x,y)

The actual arguments a and b are associated with the dummy arguments x and y.

If the value of a dummy argument changes then so does the value of the actual argument.

For more information, click here gif


next up previous contents
Next: Local Objects Up: Program Units Previous: Functions

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.