Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
function parameter evaluation order
enter code hereIn C language execution of function is from right to left or left to right? I found it is from right to left.(Execution of function means in which order it pass the argument).
So i want to know is there any case of function or any inbuilt function in c which execute from left to right?
EXAMPLE:-
#include<stdio.h>
int print(int a,int b);
int main()
{
    int a=10,b=20;
    print(++a,a++);
    getch();
    return 0;
}
int print(int a,int b)
{
    printf("%d %d",a,b);
}
So in this it starts from right side and pass a=10 than a++ so now a=11
than ++a so now a=12 than it pass a=12 so in print function it prints 12 10
 
     
    