Depends on which version of Fortran you are using. If you are using F90, F95 or F2003, it is possible. Just declare the array as allocatable, read in the size of the array and then allocate it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.