hi
i write the following program.
--------------------------------------------------------------
# define swap(a,b) temp=a; a=b; b=temp;
main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
-----------------------------------------------------
i got ans 10 0 0
i could't understand the concept.
pls any one help me.
bye.,
saravana.
i write the following program.
--------------------------------------------------------------
# define swap(a,b) temp=a; a=b; b=temp;
main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
-----------------------------------------------------
i got ans 10 0 0
i could't understand the concept.
pls any one help me.
bye.,
saravana.