I am not able to understand the output of the following code can someone please help me out?
#define PRODUCT(x) (x*x)
main()
{
int i=3,j,k;
j=PRODUCT(i++);
k=PRODUCT(++i);
printf("\n %d%d",j,k);
}
For the above I got the output as:
9 and 49
I am not able to understand how 49 is coming and when I commented out
k=PRODUCT(++i);
I got the output as 25. Don't know what is going on in the program