C 语言 优先级

Posted by 老沙
10月 17 2009

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

Trackback URL for this entry