Sandip Tujare <sandip_tuj...@...> wrote:
> From: piyush_4love_4ever <piyush_4love_4e...@...>
> >   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]
> 
> Declare all variable as GLOBAL VARIABLES and then compile it..

Umm... Why?

-- 
Peter

Reply via email to