C
cody
The order in which arguments are evaluated is undefined.
Thanks, I will remember it next time.
I didn't claim that something would lead to undefined behaviour, I just said
that the order of parameter evaluation is undefined.
But you was right, in that example the order of parameter evaluation does
not make any difference (it would, when p would be an int instead of char*)
Unspecified: Multiple options are presented, one *must* be used.
Undefined: No constraints at all.
Thanks, I will remember it next time.
Because the claim was that the behavior is undefined. It's not clear how
different orders of evaluation for the parameters would lead to
undefined behavior.
I didn't claim that something would lead to undefined behaviour, I just said
that the order of parameter evaluation is undefined.
But you was right, in that example the order of parameter evaluation does
not make any difference (it would, when p would be an int instead of char*)