Next: Comments
Up: Language Elements
Previous: Significance of Blanks
In Fortran 90 variable names (and procedure names etc.)
- must start with a letter
REAL :: a1 ! valid name
REAL :: 1a ! not valid name
- may use only letters, digits and the underscore
CHARACTER :: atoz ! valid name
CHARACTER :: a-z ! not valid name
CHARACTER :: a_z ! OK
- underscore should be used to separate words in long names
CHARACTER(LEN=8) :: user_name ! valid name
CHARACTER(LEN=8) :: username ! different name
- may not be longer than 31 characters
For more information, click here
Next: Comments
Up: Language Elements
Previous: Significance of Blanks
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.