Op in C++
Op in C++
Operator
Description scope
::
() [] . -> ++ -- dynamic_cast static_cast postfix reinterpret_cast const_cast typeid ++ -- ~ ! sizeof new delete unary (prefix) * & + indirection and reference (pointers) unary sign operator type casting pointer-to-member multiplicative additive shift relational equality bitwise AND bitwise XOR bitwise OR logical AND logical OR conditional assignment comma
Grouping Left-toright Left-toright Right-toleft Right-toleft Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Left-toright Right-toleft Right-toleft
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(type) .* ->* * / % + << >> < > <= >= == != & ^ | && || ?: = *= /= %= += -= >>= <<= &= ^= |= ,