two strings separated by blank being concatenated automatically

前端 未结 3 1110
醉话见心
醉话见心 2021-01-19 03:13

I just found something very interesting which was introduced by my typo. Here\'s a sample of very easy code script:

printf(\"A\" \"B\");

Th

3条回答
  •  情书的邮戳
    2021-01-19 03:47

    This is string concatenation, part of C standard. Any two or more consecutive string literals are combined into one.

提交回复
热议问题