Wednesday, February 11, 2015

What is the output of following code?

What is the output of following code?
‪#‎include‬ <stdio.h>
‪#‎define‬ prod(a,b) ((a>b)?a*a:b*b)
int main(){
int p=0,q=-1;
printf("%d",prod(p++,q++));
return 0;
}

No comments:

Post a Comment