ID: Q147762
4.00 | 4.00
WINDOWS | WINDOWS NT
kbprg kbusage kbhowto
The information in this article applies to:
Incorrectly specifying a literal string on a continuation line may produce unwanted results when printing the string. For example, extra blank spaces may be printed.
Do one of the following to prevent extra spacing of a literal string continued on a continuation line:
C Compile options needed: none C Fixed form source code
C This prints 'Hi + 64 blank spaces + world'.
print *, 'Hi
& world'
end
The following two code samples illustrate the correct way to print a
literal string on a continuation line:
C Compile options needed: none C Fixed form source code
$NOFREEFORM
C This prints 'Hi world'
print *, 'Hi' //
& ' world'
end
C Compile options needed: none C Free form source code
$FREEFORM
! This prints 'Hi world'
print *, 'Hi&
& world'
end
Additional reference words: 4.00 kbinf
KBCategory: kbprg kbusage kbhowto
KBSubcategory: FORTLngIss
Keywords : kbFortranPS kbLangFortran
Version : 4.00 | 4.00
Platform : NT WINDOWS
Last Reviewed: March 2, 1996