Here is a code:
#include<stdio.h>
int main() {
int i=0;
printf("%d %d %d", i, i++, ++i);
return 0;
}
The output to the code is
2 1 2
But, if the code is evaluated right to left then it should be
2 1 1
Please explain how GCC is evaluating.
Thank you.