EN JA
OPERATOR(7)
OPERATOR(7) FreeBSD Miscellaneous Information Manual OPERATOR(7)

名称

operatorC と C++ 言語の演算子の優先順位と評価の順序

解説

演算子 結合規則
------ --------
() [] -> . 左から右へ
! ~ ++ -- - (type) * & sizeof new delete 右から左へ
->* .* 左から右へ
* / % 左から右へ
+ - 左から右へ
<< >> 左から右へ
< <= > >= 左から右へ
== != 左から右へ
& 左から右へ
^ 左から右へ
| 左から右へ
&& 左から右へ
|| 左から右へ
?: 右から左へ
= += -= *= /= %= <<= >>= &= ^= |= throw 右から左へ
?: (C++, third operand) 右から左へ
, 左から右へ

関連ファイル

/usr/share/misc/operator
April 8, 2009 FreeBSD