Chapter 4. Expressions (EXP)
Recommendations and Rules
Risk Assessment Summary
Related Rules and Recommendations
EXP00-C. Use parentheses for precedence of operation
C programmers commonly make errors regarding the precedence rules of C operators due to the unintuitive low-precedence levels of &
, |
, ^
, <<
, and >>
. Mistakes regarding precedence rules can be avoided by the suitable use of parentheses. Using parentheses defensively reduces errors and, ...
Get The CERT® C Secure Coding Standard now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.