String literals are scanned twice, firstly to calculate their space requirements, secondly to read their contents into allocated memory.
Separate string literals that follow one another are combined into one, avoiding run-time concatenation of the pieces. Also single-quoted string literals are allowed, within which backslash ('\') has no special meaning (so you can't include a single-quote in a single-quoted string).
Note that a double-quoted string can be continued over multiple lines by ending each line but the last with a backslash, like in C.
Log in to post a comment.