using TerboC/C++
# define swap(a,b)temp=a;a=b;b=temp;
void main()
{
int i=5,j=10,temp=0;
if(i>j) swap(i,j);
printf("%d %d %d",i,j,temp);
}
output is 10 0 0.
[Unpredictable?????? pls help]- [c-prog] unpredictable OUTPUT???? piyush_4love_4ever
- [c-prog] Re: unpredictable OUTPUT???? John Matthews
- Re: [c-prog] unpredictable OUTPUT???? Tyler Littlefield
- Re: [c-prog] unpredictable OUTPUT???? Thomas Hruska
- RE: [c-prog] unpredictable OUTPUT???? Sharma, Hans Raj (London)
- [c-prog] Re: unpredictable OUTPUT???? John Matthews
- [c-prog] Re: unpredictable OUTPUT??... John Matthews
- [c-prog] Re: unpredictable OUTP... John Matthews
- [c-prog] Re: unpredictable OUTPUT???? tan_backagain
- [c-prog] Re: unpredictable OUTPUT???? John Matthews
- [c-prog] Re: unpredictable OUTPUT???? iamwljiang
