Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

CERT C++ Secure Coding StandardEXP30-CPP. Do not depend on order of evaluation between sequence points
CERT Oracle Secure Coding Standard for JavaEXP05-J. Do not write more than once to the same variable within an expression
ISO/IEC TR 24772Operator precedence/order of evaluation [JCW]
Side-effects and order of evaluation [SAM]
MISRA-CRule 12.1 (advisory): Limited dependence should be placed on C’s operator precedence rules in expressions

Bibliography

[ISO/IEC 9899:2011]Section 6.5, "Expressions," and Annex C, "Sequence Points"
[Summit 2005]Questions 3.1, 3.2, 3.3, 3.3b, 3.7, 3.8, 3.9, 3.10a, 3.10b, and 3.11
[Saks 2007] 

...