So i was learning c and the tutor on this subject was like compiler takes arguments from right to left while printing in c. okay i understood that part but why does it print output 5 5 3 when i give a=3; if we consider from right to left then it should have been 4 4 3 since it increments only once? i am confused. need clarification!
#include<stdio.h>
int main() {
int a;
scanf("%d",&a);
printf(" %d %d %d",a,++a,a++);
return 0;
}
Output :
3
5 5 3