int main()
static int a=5,b=6,temp;
#define swap(a,b)temp=a;a=b;b=temp;
{
if(a>b)
swap(a,b)
printf("a=%d b=%d",a,b);
return(0);
}
The output is:
a=6 b=0
How & why?
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.