Operation = ? < > !
~ + * / % |
Meaning Assignment statement Selection Less than Greater than Logical not (true to false, false to true) 1s complement Addition Subtraction Multiply or pointer reference Divide Modulo, division remainder Logical or
Operation == <= >= != << >> ++ -&& || += -=
Meaning Equal to comparison Less than or equal to Greater than or equal to Not equal to Shift left Shift right Increment Decrement Boolean and Boolean or Add value to Subtract value to
& ^ .
Logical and, or address of Logical exclusive or Used to access parts of a structure
*= /= |= &= ^= <<= >>= %= ->
Multiply value to Divide value to Or value to And value to Exclusive or value to Shift value left Shift value right Modulo divide value to Pointer to a structure Associativity Left to right Right to left Left to right Left to right Left to right
Precedence Highest
Operators () []. -> ++(postfix) --(postfix) ++(prefix) --(prefix) * + << < == & ^ | / >> <= != > >= % ! ~ sizeof(type) +(unary) -(unary) &(address) *(dereference)
Left to right Left to right Left to right Left to right Left to right
&& || ? : = Lowest , += -= *= /= %= <<= >>= |= &= ^=
Left to right Left to right Right to left Right to left Left to right
To specify the absence of a parameter we use the expression void.