My code is as follows:
#include <stdio.h>
int main(int argc, char *argv[])
{
int i=8;
printf("%d,%d,%d,%d\n",i--, --i, i++, i++);
return 0;
}
the output in my machine is
9,8,8,8
I know printf executes args from right to left, but the output is seems unexpected, what's wrong here?