LOC(3f)

DESCRIPTION
LOC(X) returns the address of X as an integer.

STANDARD
GNU extension

CLASS
Inquiry function

SYNTAX
RESULT = LOC(X)

ARGUMENTS

X Variable of any type.

RETURN VALUE
The return value is of type INTEGER, with a KIND corresponding to the size (in bytes) of a memory address on the target machine.

EXAMPLE
          program test_loc
            integer :: i
            real :: r
            i = loc(r)
            print *, i
          end program test_loc

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).