Appendix A
Appendix A
It is important to understand that operators have a precedence, but it is not essential to memorize the precedence.
New Term: Precedence is the order in which a program performs the operations in a formula. If one operator has precedence over another operator, it is evaluated first.
Higher precedence operators "bind tighter" than lower precedence operators; thus, higher precedence operators are evaluated first. The lower the rank in the following chart, the higher the precedence.
4 5 6 7 8 9 10 11 12 13 14 15 16
member selection for pointer multiply, divide, modulo add, subtract shift inequality relational equality, inequality bitwise AND bitwise exclusive OR bitwise OR logical AND logical OR conditional assignment operators
.* ->* */% +<< >> < <= > >= == != & ^ | && || ?: = *= /= %= += -= <<= >>= &= |= ^=
17 18
throw ,