Sunday, 1 September 2013

Why am i getting 11 as output? I should have got 25 as o/p?

Why am i getting 11 as output? I should have got 25 as o/p?

This is my program. I thought i would get 25 as o/p.BUt im getting 11 as o/p.
#include<stdio.h>
#define SQR(a) a*a
int main()
{
int i=3;
printf("%d",SQR(i+2));
return 1;
}

No comments:

Post a Comment