Arithmetic operators
Plus minus +- from left to right +- sibling
Multiplication modulus *%/ from left to right above +-
Self-added + + +-- right binding higher than basic arithmetic operator
Positive and negative -+ from right to left with + +-- sibling
Assignment operators
Assignment = from right to left lower than arithmetic, relationship, logic
Relational operators
All left binding is lower than arithmetic higher than the value of the assignment
<, <=, >, >= have the same priority, higher than = =, ! =. = = and ! = siblings.
logical operators
&&| | left binding less than relationship higher than assignment short-circuit characteristic
! right binding is higher than arithmetic
Bitwise operators
The number of participating bit operations appears in a complementary fashion.
~ Right associative sign bit also reversed
<< left high discard right low 0
>> sign bit move, positive high 0, negative depends on compilation system
Conditional operators
?: from right to left lower than relationship and arithmetic, above assignment type can be different, take higher
Comma operator
, from left to right below the value of an assignment comma expression value equal to the expression n
C Operator Summary