Next: Constants (Parameters)
Up: Data Objects
Previous: Numeric and Logical Declarations
Character variables are declared in a similar way to numeric types.
CHARACTER variables can
- refer to one character;
- refer to a string of characters which is achieved by
adding a length specifier to the object declaration.
The following are all valid declarations,
CHARACTER(LEN=10) :: name
CHARACTER :: sex
CHARACTER(LEN=32) :: str
CHARACTER(LEN=10), DIMENSION(10,10) :: Harray
CHARACTER(LEN=32), POINTER :: Pstr
For more information, click here
Next: Constants (Parameters)
Up: Data Objects
Previous: Numeric and Logical Declarations
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.