View on GitHub

Devendra's Log

idioCyncracies - operator precedence

I get a tingle when I see C code such as

while (*string != 0)
  putchar(*string++);

How do you suppose the compiler evaluates the expression *string++? Here’s the operator precedence table to help you figure that out.