Ashokkumar01cbe
Broken In
include"stdio.h"
#define prod(x) (x*x)
void main()
{
int i=3,j,k,l;
j=prod(i+1);
k=prod(i++);
l=prod(++i);
printf("%d\n%d\n%d",j,k,l);
}
i got the output in gcc compiler as 7,9,and 49
please explain me how the output will be like this..
#define prod(x) (x*x)
void main()
{
int i=3,j,k,l;
j=prod(i+1);
k=prod(i++);
l=prod(++i);
printf("%d\n%d\n%d",j,k,l);
}
i got the output in gcc compiler as 7,9,and 49
please explain me how the output will be like this..