Is this function call valid in C
2 answers
Is foo valid to call this way or does it fall into the Undefined Behavior category?
Yes , order is guaranteed (there is a sequence point between parameter evaluation and function call).
You are probably confusing this with the side effects of unnatural modifications or something else.
+6
source to share