- #1
Niles
- 1,866
- 0
Hi all.
When I have the following code in FORTRAN:
then does "ptr" receive a new address (i.e. do we have "ptr => <new integer>") or does the pointer retain its address (i.e. we don't have "ptr => ...")?
When I have the following code in FORTRAN:
Code:
integer, pointer :: ptr
ALLOCATE(ptr)
then does "ptr" receive a new address (i.e. do we have "ptr => <new integer>") or does the pointer retain its address (i.e. we don't have "ptr => ...")?