Operator Precedence
- 67 operators and 18 levels of operator precedence
- Table of most of the C++ operators is shown in the
narrative
- Discussion of all is beyond the scope of this review
- Many operators will be introduced in this course
- When in doubt, use parentheses to force the order of operator evaluation.
- Arithmetic operators have relative precedence following standard mathematical usage
- Assignment operator has very low precedence
x = a + b * c;
|