Skip to content

Is i=i++ the same as i++?

medium.com
2 pointsjulien4211 comment
On HN

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.