Strings are variables of an intrinsic Fortran type. They are a concatenation of characters and are padded to their declared length with trailing blank spaces. Arrays of strings can be constructed as well. Examples:

The length of a string can be determined with the two functions len and len_trim. Example:

The results are:

 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Inclusivity Statement