常用的算术运算符如+ - * /仅次于括号,一些判断运算符如 < <= > >= == != 要比赋值运算符高,在判断运算符中,&& ||运算符最低。三目运算符次于判断运算符。
Operator Associativity
() [] -> . left to right
! ~ ++ -- + - (type) * & sizeof right to left
* / % left to right
+ - left to right
<< >> left to right
< <= > >= left to right
== != left to right
& left to right
^ left to right
| left to right
&& left to right
|| left to right
?: right to left
= += -= *= /= %= <<= >>= &= ^= |= right to left
, left to right