Anonymous user
Address of a variable: Difference between revisions
→{{header|Fortran}}: applied code style guide: print instead of write, aligning double colons, etc.
Puppydrum64 (talk | contribs) |
(→{{header|Fortran}}: applied code style guide: print instead of write, aligning double colons, etc.) |
||
Line 821:
{{works with|Fortran|90 and later}}
<lang fortran>program test_loc
implicit none▼
▲ implicit none
integer :: i
real :: r
i = loc (r)▼
end program test_loc</lang>▼
print *, i
Note: <code>loc</code> is a common extension that is implemented
by e.g. the Intel Fortran Compiler, G95 and gfortran.
|