You are in a gray zone, the resulting code is the compiler choice and thus it is unpredictable.
The only advice is: never write code with more than 1 increment on same variable in single line of code.
This code:
#include<stdio.h>
main()
{
int i=2;
printf("\n%d %d",++i,++i);
getch();
}
can translate to:
#include<stdio.h>
main()
{
int i=2;
int t1=++i;
int t2=++i;
printf("\n%d %d",t1,t2);
getch();
}
or to:
can translate to:
#include<stdio.h>
main()
{
int i=2;
int t1=++i;
int t2=++i;
printf("\n%d %d",t2,t1);
getch();
}
It is only compiler choice.