consider the following question on C programming:
Code:
void call(int,int,int);
void main(){
int a=10;
call(a,a++,++a);
}
void call(int x,int y,int z){
printf("%d %d %d",x,y,z);
}
I thought the output is 10 10 12, but that was wrong... and in the explanation they said that the variables are evaluated from right to left, so it is 12 11 11... And before the exercises they said that the Turbo C++ compiler version 3.0 was used...
however my tcc (Tiny C compiler) whowed result of 12 10 12...
So i think its pretty wrong to ask such kind of questions huh? Cuz it is dependend on implementation of compiler?