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

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

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

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-21 07:53

    • 'x' is an integer, representing the numerical value of the letter x in the machine’s character set
    • "x" is an array of characters, two characters long, consisting of ‘x’ followed by ‘\0’

提交回复
热议问题