主要表达式中的标识符Identifiers in Primary Expressions

标识符可具有整数、float、enumstruct、union、数组、指针或函数类型。Identifiers can have integral, float, enum, struct, union, array, pointer, or function type. 如果已将标识符声明为指定对象(此时为左值)或声明为函数(此时为函数指示符),则它是主函数。An identifier is a primary expression provided it has been declared as designating an object (in which case it is an l-value) or as a function (in which case it is a function designator). 有关左值的定义,请参阅左值和右值表达式See L-Value and R-Value Expressions for a definition of l-value.

数组标识符表示的指针值不是一个变量,因此数组标识符不能构成赋值运算的左操作数,因而不是一个可修改的左值。The pointer value represented by an array identifier is not a variable, so an array identifier cannot form the left-hand operand of an assignment operation and therefore is not a modifiable l-value.

声明为函数的标识符表示其值是函数的地址的指针。An identifier declared as a function represents a pointer whose value is the address of the function. 该指针为返回指定类型的值的函数寻址。The pointer addresses a function returning a value of a specified type. 因此,函数标识符也不能是赋值运算中的左值。Thus, function identifiers also cannot be l-values in assignment operations. 有关详细信息,请参阅标识符For more information, see Identifiers.

请参阅See Also

C 主要表达式C Primary Expressions