Literals/String: Difference between revisions

Content deleted Content added
→‎{{header|C}}: example consistent with the text
Line 22:
Strings are contained in double quotes.
 
char str[] = "helloz";
 
This means that 'z' and "z" are different. The former is a character while the latter is a string, an array of sixtwo characters: the lettersletter 'hz', 'e', 'l', 'l', 'o', and the string-terminator null '\0'.
 
C has no raw string feature and no way of literally quoting a string containing line breaks. C also has no built-in mechanism for expanding variables within strings.