CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.



next up previous
Next: Pointer functions Up: Fortran 90 Tutorial: Previous: Pointers in expressions

Pointer arguments

If an actual argument is a pointer then, if the dummy argument is also a pointer,

If the dummy argument is not a pointer, it becomes associated with the target of the actual argument:

     REAL, POINTER :: a
        :
     ALLOCATE (a(80, 80)
        :
     CALL sub(a)
        :
  SUBROUTINE sub(c)
     REAL c(:, :)



Janne Saarela
Tue May 16 13:43:26 METDST 1995