#Trivia
24-Jul-86 21:39:30
Sb: #27628-#Trivia
Fm: Larry Phillips/ICUG 74025,636
To: Don Curtis/SYSOP 76703,4321
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
Au contraire… K&R did not specify precedence of the increment operator either
within functions or when a variable appears more than once in an expression. In
other words, it is up to the compiler as to whether the expression
i = i++
produces i or i+1
Every C book I have read warns about this, and it usually forms one of my
arguments against those that claim C as being "the most portable" language.