Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A very old gcc "bug". Parent comment
https://www.securecoding.cert.org/confluence/display/seccode...
Basically, do not depend on the order of evaluation of arguments to a function call, because it is unspecified and left to the implementation to decide according to the C99 standard.
EDIT: Another explanation, pertinent to your example can be found here - http://c-faq.com/expr/evalorder2.html
There are no comments on this comment yet.
https://www.securecoding.cert.org/confluence/display/seccode...
Basically, do not depend on the order of evaluation of arguments to a function call, because it is unspecified and left to the implementation to decide according to the C99 standard.
EDIT: Another explanation, pertinent to your example can be found here - http://c-faq.com/expr/evalorder2.html