字符串文本的类型Type for String Literals

字符串文本具有 char即 char[ ])的类型数组。String literals have type array of char (that is, char[ ]). (宽字符字符串具有 wchar_t即 wchar_t[ ])的类型数组。)这意味着字符串是带有 char 类型的元素的数组。(Wide-character strings have type array of wchar_t (that is, wchar_t[ ]).) This means that a string is an array with elements of type char. 数组中的元素数等于字符串中的字符数加上结尾的 null 字符。The number of elements in the array is equal to the number of characters in the string plus one for the terminating null character.

另请参阅See Also

C 字符串文本C String Literals