C++ Language/Expressions/Precedence

C++ follows the standard precedence rule of mathematics, where 2 + 3 * 4 is parsed the same as if it had been written 2 + (3 * 4). Other precedence rules govern all aspects of expression evaluation.

Additional information about precedence rules (includes interactive examples)