Different syntaxes to declare arrays: with and without the dimension statement [duplicate]
问题 This question already has answers here : Array declaration in Fortran (2 answers) Closed last year . I'm using gfortran version 7.2.0. I'm quite new to Fortran. I know there are different versions of Fortran. In the code below, I'm declaring arrays (or actually tensors) using different syntaxes program arrays implicit none integer :: m(3, 4) integer, dimension(3, 4) :: n print *, "m = ", m print *, "n = ", n end program arrays In one case, I'm using the dimension statement, in the other I am