Literals/String: Difference between revisions

→‎{{header|Pike}}: Added hash-quoted string; changed comments to //
(→‎{{header|Pike}}: Added hash-quoted string; changed comments to //)
Line 740:
=={{header|Pike}}==
<lang pike>
'c'; #// Character code (ASCII) (result: 99)
"c"; #// String (result: "c")
"\n"; #// String (result: newline character)
"hi " + world #// String (result: "hi " and the contents of the variable world)
#"multiple line
string using the
preprocessor" // single literal string with newlines in it
</lang>
 
Anonymous user