Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

What is the different between allocatable and pointer variable?

$
0
0

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!


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>