At 6/9/2009 06:28 AM, you wrote:
>i m not asking for right code.
> i want to know why the result is 10 0 0.
# define swap(a,b)temp=a;a=b;b=temp;
void main()
{
int i=5,j=10,temp=0;
// If you process your #define for swap, your code expands to this
if(i>j) temp=i; i=j; j=temp;
// Now do you understand?
printf("%d %d %d",i,j,temp);
}~Rick
