Monday, March 22, 2010

58

#define ft(a,b) (a)*b
int main()
{

printf("%d",ft(2+1,3+1);

return 0;
}


Output:
10
Logic:
function is replaced with constant expression like this
(2+1)*3+1=3*3+1=9+1=10

0 comments:

Post a Comment