Special characters: Difference between revisions

Line 747:
 
PL/I has no escape characters as such.
However, in string constants, enclosed in apostrophes or, (since Enterprise PL/I, quotesfor OS/2) quotation marks, a single apostrophe/quote in the string
a single apostrophe/quote in the string must be duplicated, thus:
<lang PL/I>'John''s pen' which is stored as <<John's pen>>
"He said ""Go!"" and opened the door" which is stored as <<He said "Go!" and opened the door>></lang>
Anonymous user