()
Functional call
[]
Array element reference
->
Indirect member selection
Left to right
.
Direct member selection
!
Logical negation
~
Bitwise(1 's) complement
+
Unary plus
-
Unary minus
++
Increment
--
Decrement
Right to left
&
Dereference Operator(Address)
*
Pointer reference
sizeof
Returns the size of an object
(type)
Type cast(conversion)
*
Multiply
/
Divide
Left to right
%
Remainder
+
Binary plus(Addition)
-
Binary minus(subtraction)
Left to right
<<
Left shift
>>
Right shift
Left to right
<
Less than
<=
Less than or equal
>
Greater than
Left to right
>=
Greater than or equal
==
Equal to
!=
Not equal to
Left to right
&
Bitwise AND
Left to right
^
Bitwise exclusive OR
Left to right
|
Bitwise OR
Left to right
&&
Logical AND
Left to right
||
Logical OR
Left to right
?:
Conditional Operator
Left to right
=
Simple assignment
Right to left
Summary of C operators with precedence and associativity
Operator
Meaning Of Operator