Logical Negation/bitwise Complement: Cast (Convert Value To Temporary Value of Type)
The document lists C and C++ operators and their associativity. It details operator precedence from highest to lowest, including parentheses, member selection, increment/decrement, arithmetic, comparison, bitwise, logical, ternary, and assignment operators.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
22 views1 page
Logical Negation/bitwise Complement: Cast (Convert Value To Temporary Value of Type)
The document lists C and C++ operators and their associativity. It details operator precedence from highest to lowest, including parentheses, member selection, increment/decrement, arithmetic, comparison, bitwise, logical, ternary, and assignment operators.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
() Parentheses (function call) left-to-right
[] Brackets (array subscript)
. Member selection via object -> name ++ -- Member selection via pointer Postfix increment/decrement ++ -- Prefix increment/decrement right-to-left +– Unary plus/minus !~ Logical negation/bitwise complement Cast (convert value to temporary value of type) (type) * Dereference & Address (of operand) sizeof Determine size in bytes on this implementation
*/% Multiplication/division/modulus left-to-right
+– Addition/subtraction left-to-right << >> Bitwise shift left, Bitwise shift left-to-right right < <= Relational less than/less than or left-to-right > >= equal to Relational greater than/greater than or equal to == != Relational is equal to/is not left-to-right equal to & Bitwise AND left-to-right ^ Bitwise exclusive OR left-to-right | Bitwise inclusive OR left-to-right && Logical AND left-to-right || Logical OR left-to-right ?: Ternary conditional right-to-left = Assignment right-to-left += -= Addition/subtraction *= /= assignment %= &= Multiplication/division ^= |= assignment <<= >>= Modulus/bitwise AND assignment Bitwise exclusive/inclusive OR assignment Bitwise shift left/right assignment , Comma (separate expressions) left-to-right