C++ Language/Expressions/Precedence

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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)