Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: ref to c99 6.5

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, if not taken to excess, makes the code more readable.

Wiki Markup
Section 6.5 of \[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\] (C99) defines the precedence of operation by the order of the subclauses.

Non-Compliant Code Example

...