When I execute this code:
#include <stdio.h>
int main(){
int x = 10;
printf("%d %d %d %d\n", ++x, ++x, ++x, ++x);
x = 10;
printf("%d %d %d %d\n", x++, x++, x++, x++);
x = 10;
printf("%d %d %d %d\n",++x, x++, ++x, x++);
}
The result is
14 14 14 14
13 12 11 10
14 12 14 10
I don't understand the sequence of operation precedence in the three printf
statements.