Hacker News new | past | comments | ask | show | jobs | submit login
Is i=i++ the same as i++? (medium.com/glyif)
2 points by julien421 on March 5, 2017 | hide | past | favorite | 1 comment



You can't answer this sort of question by testing it in a C compiler.

It might help but you'll often be compiling "undefined behavior" and getting results that you can't rely on.

What would help settle this definitively is researching "sequence points" in the C standard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: