
#include "stdafx.h"
#include<conio.h>
# define PRODUCT(x)(x*x)
int _tmain(int argc, _TCHAR* argv[])
{
int i=3,j,k,l;
j=PRODUCT(i+1);
k=PRODUCT(i++);
l=PRODUCT(++i);
printf("%d %d %d %d\n",i,j,k,l);
getch();
return 0;
}
Output : 7 7 9 49
what is the the logic behind this?
I dont know the proper reason. Please explain it .
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.