Next: Intrinsic Character Operations -
Up: Expressions and Assignment
Previous: Intrinsic Numeric Operations
Consider,
CHARACTER(LEN=*), PARAMETER :: string = "abcdefgh"
substrings can be taken,
- string is `abcdefgh'
- string(1:1) is `a' (1st letter)
- string(2:4) is `bcd' (2nd, 3rd and 4th letters).
- string(1) is an error.
For more information, click here
Next: Intrinsic Character Operations -
Up: Expressions and Assignment
Previous: Intrinsic Numeric Operations
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996Not for commercial use.