Postfix operators are operators that appear after their
operands. A postfix expression is a primary expression, or a
primary expression that contains a postfix operator. The following
summarizes the available postfix operators:
Precedence and associativity of postfix operators | |||
Rank | Right Associative? | Operator Function | Usage |
---|---|---|---|
2 |
| member selection | object . member |
2 |
| member selection | pointer -> member |
2 |
| subscripting | pointer [ expr ] |
2 |
| function call | expr ( expr_list ) |
2 |
| value construction | type ( expr_list ) |
2 |
| postfix increment | lvalue ++ |
2 |
| postfix decrement | lvalue -- |
2 | yes |
![]() | typeid ( type ) |
2 | yes |
![]() | typeid ( expr ) |
2 | yes |
![]() | static_cast < type > ( expr ) |
2 | yes |
![]() | dynamic_cast < type > ( expr ) |
2 | yes |
![]() | reinterpret_cast < type > ( expr ) |
2 | yes |
![]() | const_cast < type > ( expr ) |
Related References
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.