Function call
Array subscript
C++ indirect component selector
C++ scope access/resolution
C++ direct component selector
2. Unary
! ~ + - ++ -- & * sizeof new delete
Logical negation (NOT)
Bitwise (1's) complement
Unary plus
Unary minus
Pre-increment or post-increment
Pre-decrement or post-decrement
Address
Indirection
Returns size of operand in bytes
Dynamically allocates C++ storage
Dynamically deallocates C++ storage
3. Multiplicative
* / %
Multiply Divide Remainder (modulus)
4. Member Access
.* ->*
C++ deference C++ deference
5. Additive
+ -
Binary plus Binary minus
6. Shift
<< >>
Shift left Shift right
7. Relational
< <= > >=
Less than Less than or equal to Greater than Greater than or equal to
8. Equality
== !=
Equal to
Not equal to
9. Bitwise
&
Bitwise AND
^
Bitwise XOR
|
Bitwise OR
10. logical
&&
Logical AND
||
Logical OR
11. Conditional
?:
(a ? x : y means “if a then x, else y”)
12. Assignment 13. Comma
= *= /= %= += -= &= ^= |= <<= >>= ,
Simple assignment
Assign product
Assign quotient
Assign remainder (modulus)
Assign sum
Assign difference Assign bitwise AND
Assign bitwise XOR
Assign bitwise OR
Assign left shift
Assign right shift
Evaluate
APPENDIX D
American Standard Code for Information Interchange