+ 1
Why two strings are of two sizes?
4 Answers
+ 1
The second one technically is not a string because you don't have '\0' after it, while '\0' is added at the end of first one.
+ 1
CarrieForle If the 2nd one isn’t string, then what is it?Wasn’t the compiler supposed to put a '\0' at the end of 2nd string?
+ 1
Second one is array of characters. Because the complier sees it as an array, \0 won't be added
+ 1
Now I get it.