What is the different between allocatable and pointer variable?
integer, allocatable :: i integer, allocatable, dimension(:) :: i integer, allocatable, dimension(:,:) :: i
I can use pointer to do the same thing of the above examples. no matter a variable is allocatable or pointer, thay both should be deallocated. so I don't know the difference between them, and which one should i choose under certain circumstance.
I appreciate your help!