top | item 20370351

(no title)

noahmorrison | 6 years ago

Still, I’d be interested to hear about a compiler that doesn’t return 1

gcc (Ubuntu 8.3.0-6ubuntu1~18.10.1) 8.3.0 returns 2 (executes from left to right... at least the first time I ran it).

discuss

order

dahart|6 years ago

Wow, you’re right. Me too on ubu 16. Okay, I guess it’s not about pre or post increment. Maybe I should read the spec... ;) And good reason not to do this in code!