968 views

1 Answer

Best answer
5 votes
5 votes
In C/C++, the order of evaluation of function parameters is left undefined. i.e., a compiler implementation can do it as it likes -- need not be even same for all types of functions even for the same compiler. So, as a programmer, he/she should never assume any order of evaluation for function parameters and write code respecting the language rule. So, answer here is "implementation dependent" but again not "implementation defined". "Implementation defined" is used for the kinds of stuff which the programmer can guarantee at least for a given implementation -- like sizeof (int).
selected by

No related questions found