define integer array fortran

Posted by Praveen on Stack Overflow See other posts from Stack Overflow or by Praveen
Published on 2009-11-09T09:57:23Z Indexed on 2010/05/11 23:54 UTC
Read the original article Hit count: 401

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about integer

Related posts about arrays