next up previous contents
Next: Relational Operators Up: Expressions and Assignment Previous: Intrinsic Character Operations -

Intrinsic Character Operations - Concatenation

There is only one intrinsic character operator -- most of the manipulation is done using intrinsic functions.

The concatenation operator, //, is used to join two strings.

   CHARACTER(LEN=4), PARAMETER :: name = "Coal"
   CHARACTER(LEN=10) :: song = "Firey "//name
   PRINT*, "Rowche "//"Rumble"
   PRINT*, song(1:1)//name(2:4)

would produce

    Rowche Rumble
    Foal

For more information, click here gif


next up previous contents
Next: Relational Operators Up: Expressions and Assignment Previous: Intrinsic Character Operations -

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.