M
Marcel Müller
Hi,
I have a question about the execution sequence of the postfix increment
operator with respect to a function call.
void foo(int type, int*& data);
int* sequence;
foo(*sequence++, sequence);
Is the operator++ always executed before the function foo is called?
In this case the evaluation of the two arguments is independent,
otherwise the value of data in the body of foo is undefined.
Marcel
I have a question about the execution sequence of the postfix increment
operator with respect to a function call.
void foo(int type, int*& data);
int* sequence;
foo(*sequence++, sequence);
Is the operator++ always executed before the function foo is called?
In this case the evaluation of the two arguments is independent,
otherwise the value of data in the body of foo is undefined.
Marcel