运算符优先级
优先级 运算符
高 ++,--(用作前缀);(),+,-(一元),!,~
*,/,%
+,-
<<,>>
<,>,<=,>=
==,!=
&
^
|
&&
||
=,*=,/=,%=,+=,-=
低 ++,--(用作后缀)
运算符优先级
优先级 运算符
高 ++,--(用作前缀);(),+,-(一元),!,~
*,/,%
+,-
<<,>>
<,>,<=,>=
==,!=
&
^
|
&&
||
=,*=,/=,%=,+=,-=
低 ++,--(用作后缀)