Single quotes vs. double quotes in C or C++

前端 未结 13 1191
别那么骄傲
别那么骄傲 2020-11-21 07:14

When should I use single quotes and double quotes in C or C++ programming?

13条回答
  •  迷失自我
    2020-11-21 07:55

    In C, single-quotes such as 'a' indicate character constants whereas "a" is an array of characters, always terminated with the \0 character

提交回复
热议问题