+ 2
What is the difference between character constant and string literals?
related to c++
3 Respuestas
+ 7
A character constant like '!' represents a single character. A string literal between double quotes usually represents multiple characters. A string literal like "!" seems to represent a single character, but it actually contains two: the ! you requested, and the \0 which terminates all strings
+ 1
https://msdn.microsoft.com/en-us/library/6aw8xdf2(v=vs.110).aspx
0
Thank you for helping me