My Question is regarding the code written below. If you look at the function called "function"
when 'a' is passed to the function and the function "function" is evaluated. I was wondering what the return value would be for the first pass when (a =2), my questin specifcaly is that do we increment b and c since its post? otherwise if they had been pre increment would the value of the expression 'a1+b+c' be any different ? thanks.
int function( int a1 )
{
int b = 0;
int c = 0;
b++;
c++;
return ( a1 + b + c );
}
int main() /*main function*/
{
int a = 2, i;
for( i=0; i<3; i++ )
printf( "%d ", function(a) );
return 0;
}