Postfix expressions consist of primary expressions or expressions in which postfix operators follow a primary expression. The postfix operators are listed in Table 4.1.
Operator Name | Operator Notation |
Subscript operator | [ ] |
Function-call operator | ( ) |
Explicit type conversion operator | type-name( ) |
Member-selection operator | . or –> |
Postfix increment operator | ++ |
Postfix decrement operator | – – |
Syntax
postfix-expression :
primary-expression
postfix-expression [ expression ]
postfix-expression ( expression-listopt )
simple-type-name ( expression-listopt )
postfix-expression . name
postfix-expression –> name
postfix-expression ++
postfix-expression ––
expression-list :
assignment-expression
expression-list , assignment-expression