Operator Precedence and Associativity

Level Operators Description Associativity
15 ()
[]
-> .
++ --
Parenthesis
Array Subscript
Structure Member Selectors
Postfix Increment/Decrement
14 ++ --
+ -
! ~
(type)
*
&
sizeof
Prefix Increment/Decrement
Unary Plus/Minus
Logical Negation/Bitwise Complement
Cast Operator
Dereference
Address of
Size in bytes
13 * / % Multiplication/Division/Modulo
12 + - Addiction/Subtraction
11 >>
<<
Bitwise Right Shift
Bitwise Left Shift
10 < <=
> >=
Relational Less than/Less than or Equal to
Relational Greater than//Greater than or Equal to
9 ==
!=
Relational Equality
Relational Not Equal
8 & Bitwise AND
7 ^ Bitwise XOR
6 | Bitwise OR
5 && Logical AND
4 || Logical OR
3 ?: Conditional Operator (Ternary)
2 =
*= /= %/
+= -=
&= ^= |=
<<= >>=
Assigment Operators
1 , Comma Operator