1. Concatenating string literas like so:
char* str = "first" "second" "third"
"forth" "etc";
2. Multiline strings like so
char* str = "a multi line string without
a back slash before the newline";
which on the compilers I've seen has the behavior of inserting a
newline between "without" and "a" in str as if \n had been typed there.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Defined to be valid by the standard (2.13.4/3): "adjacent [narrow/wide]
string literals are concatenated."
> 2. Multiline strings like so
>
> char* str = "a multi line string without
> a back slash before the newline";
>
> which on the compilers I've seen has the behavior of inserting a
> newline between "without" and "a" in str as if \n had been typed there.
Defined to be invalid by the standard (2.13.4): a /string-literal/
consists of a sequence of /s-char/'s, from which the double-quote ",
backslash \, or new-line character is explicitly excluded.
--
Seungbeom Kim