Hacker News new | ask | show | jobs
by noahmorrison 2542 days 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).

1 comments

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!