Is there a difference between
integer, intent(in) :: n
integer, dimension(:), allocatable :: a
allocate(a(n))
and
integer, intent(in) :: n
integer, dimension(n) :: a
In which situation would we use the first version? Perhaps I misunderstood allocatable array, is the second version even an allocatable array?