Back to the Main Page
Notes on PRECEDENCE LOSSAGE
[C programmers] Coding error in an expression due to unexpected
grouping of arithmetic or logical operators by the compiler. Used
esp. of certain common coding errors in C due to the nonintuitively
low precedence levels of &, |, ^, <<, and >> (for this reason,
experienced C programmers deliberately forget the language's
BAROQUE precedence hierarchy and parenthesize defensively). Can
always be avoided by suitable use of parentheses. LISP fans enjoy
pointing out that this can't happen in their favorite language, which
eschews precedence entirely, requiring one to use explicit
parentheses everywhere. See ALIASING BUG, MEMORY LEAK,
MEMORY SMASH, SMASH THE STACK, FANDANGO ON CORE, OVERRUN SCREW.
J3N Research Labs
Last Updated: 19th May 2007