Use parentheses to clarify precedence in mathematical expressions.
Priority
Strongly recommended
Severity level
5
Description
Use parentheses to clarify the precedence of operands in expressions with multiple mathematical operators. No parentheses are required when only one type of mathematical operator is used. For example: d = a * b * c;.
Rationale
By clarifying the precedence of the operands in such expressions, readability is improved and unexpected behaviour is prevented.