A Mutable Log

A blog by Devendra Tewari


Project maintained by tewarid Hosted on GitHub Pages — Theme by mattgraham

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.