C 语言 优先级

Operators 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

C ++ 优先级列表
http://www.kumouse.com/C++%20operator_precedence.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注