define integer array fortran
- by Praveen
Hello friends,
I am a newbie in Fortran.
Can any1 tell me how to define an integer array in prior.
E.g.
I want to define an array with no.of days in 12 months.
like...
integer,allocatable(12,1) :: days
days=[31,28,31,30,31,30,31,31,30,31,30,31]
Is this syntax correct? If not, please let me know the correct one.
Thanks
Praveen