Operator Precedence - MarekBykowski/readme GitHub Wiki

Level Operators Note
1 (highest) () [] -> . postfix++ -- always wins
2 prefix++ -- * & ! ~ sizeof right→left
3–4 * / % + - arithmetic
5 << >> shifts
6–7 < <= >= > == != == is above & !
8 & bitwise AND
9 ^ bitwise XOR
10 | bitwise OR
11–12 && || logical
14 (lowest) = += -= … assignment
// TRAP β€” == binds tighter than &
val & 0x01 == 0      // β†’ val & (0x01==0) β†’ val & 0 β†’ always 0!
(val & 0x01) == 0    // correct

// TRAP β€” postfix++ beats *
*p++    // β†’ *(p++) β€” deref old p, then advance
(*p)++  // increment the value p points to
⚠️ **GitHub.com Fallback** ⚠️