主要表达式中的字符串文本String Literals in Primary Expressions

“字符串”是字符、宽字符或包含在双引号内的相邻字符序列。A "string literal" is a character, wide character, or sequence of adjacent characters enclosed in double quotation marks. 由于它们不是变量,因此字符串和其任一元素都不能作为赋值运算中的左操作数。Since they are not variables, neither string literals nor any of their elements can be the left-hand operand in an assignment operation. 字符串的类型为 char 的数组(或宽字符串的 wchar_t 数组)。The type of a string literal is an array of char (or an array of wchar_t for wide-string literals). 表达式中的数组将转换为指针。Arrays in expressions are converted to pointers. 有关字符串的详细信息,请参阅字符串文本See String Literals for more information about strings.

另请参阅See Also

C 主要表达式C Primary Expressions