Hi,
In http://elearning.embnet.org/file.php...---and---.html I read about postfix and prefix unary operators.
It said " If the increment or decrement operator is used as a prefix, the operation is performed before the function call. If the operator is used as a postfix, the operation is performed after the function call. "
So accordingly
int x=4;
printf("%d%d", x++,x++);
the output should be 4 4
But it is never so in C. The output would rather be 5, 4.
But it applies to C++. I tried in VC++, the postfix operation indeed is performed after the function call.
What do you guys have to say on this?