6.5.1 Primary expressions

Previous Table of Contents

967

primary-expression:
                identifier
                constant
                string-literal
                ( expression )

968 An identifier is a primary expression, provided it has been declared as designating an object (in which case it is an lvalue) or a function (in which case it is a function designator).77)

969 A constant is a primary expression.

970 Its type depends on its form and value, as detailed in 6.4.4.

971 A string literal is a primary expression.

972 It is an lvalue with type as detailed in 6.4.5.

973 A parenthesized expression is a primary expression.

974 Its type and value are identical to those of the unparenthesized expression.

975 It is an lvalue, a function designator, or a void expression if the unparenthesized expression is, respectively, an lvalue, a function designator, or a void expression.

976 Forward references: declarations (6.7).

Next

Created at: 2005-06-29 02:18:58 The text from WG14/N1124 is copyright © ISO