Memory locations in Fortran: sometimes yes, sometimes no
I would like to know the reason for the difference in output between just_checking_1
and just_checking_2
in the below toy code. I guess this boils down to what is the difference between a(*)
and a(:)
. Also, is there any way that subroutine just_checking_p
could access the memory location to which b
is pointing?