Table A.1 lists C++ operators with their precedence, associativity, description, and syntax. The levels—to which I’ve assigned numbers—have no significance beyond the fact that all operators at the same level have equal precedence.
Table A.1. C++ Operators by Precedence Level
Associativity can be left-to-right or right-to-left. This matters when two operators are at the same level of precedence. For example, in the expression
the * and ++ operators are at the same level of precedence (level 2), so the order of evaluation is determined ...