C Operators
Arithmetic

Logical and relational

Bitwise

The unary operators are ++, ,  (negative), ! and ~
The operators << and >> take as their righthand argument the number of places to shift the bits.
Precedence
Logical and Bitwise arithmatic
P  Q  ~P  P & Q  P  Q  P ^ Q 
1  1  0  1  1  0 
1  0  0  0  1  1 
0  1  1  0  1  1 
0  0  1  0  0  0 
~(P & Q) is the same as ~P  ~Q
~(P  Q) is the same as ~P & ~Q