Unable to understand the order of compilation of printf in this program
I thought the output will be 4 2 2 0,since printf executes from right to left.
   #include<stdio.h>
    using namespace std;
    main()
    {   int x=0;
    printf("%d %d %d %d",++x,x++,++x,x++);
     }
Expected 4 2 2 0 Actual 4 2 4 0
