两个被双引号括起来的字符串,只要当中是空格(包括换行),C就认为这是一个字符串。在《C PRIMER PLUS》第四章的
Exploring and Exploiting printf() and scanf()小节中有如下引文:
new with ANSI C, is string concatenation. If you follow one quoted string constant with another, separated only by whitespace, C treats the combination as a single string
char *str = "abc" "def";等价于
char *str =
"abc"
"def";