Basically the C language calling convention is from right to left. So I passed the values as shown. As per the convention , to what I think, b=l and j=a......but here what happens actually is b=a,j=i....Please explain this?
#include<stdio.h>
int pass();
int main(void)
{
int i = 135, a = 130, k,l=0 ;
k = pass ( i, a,l) ;
printf ( "\n%d\n", k ) ;
}
int pass ( int j,int b)
{
int c;
printf("b=%d",b);
printf("\nj=%d",j);
c = j + b ;
return ( c ) ;
}