Array declaration in Fortran

arrays, fortran, variable-declaration

Solution

Yes, it is identical. Even for assumed, deferred and whatever possible shape.

Problem

Consider ``` INTEGER,DIMENSION(3) :: NumberVector ``` and ``` INTEGER :: NumberVector(3) ``` Is there any difference whatsoever between these two declarations or are they exactly the same? (I mean in ANY possible context and variation: for example, in the case that those two were identical, what if I am declaring an array with an implicit size as one of the input parameter of a subroutine? Would it still be irrelevant which one I used?)

Original source