Next: LOG, Previous: KIND, Up: Intrinsic Procedures
LOC
— Returns the address of a variableLOC(X)
returns the address of X as an integer.
I = LOC(X)
X | Variable of any type.
|
INTEGER(n)
, where n
is the
size (in bytes) of a memory address on the target machine.
program test_loc integer :: i real :: r i = loc(r) print *, i end program test_loc