Declare all variable as GLOBAL VARIABLES and then compile it.. Thanks & Best Regards Sandip Tujare
________________________________ From: piyush_4love_4ever <[email protected]> To: [email protected] Sent: Monday, 8 June, 2009 3:43:11 PM Subject: [c-prog] unpredictable OUTPUT???? 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] ------------------------------------ To unsubscribe, send a blank message to <mailto:[email protected]>.Yahoo! Groups Links Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/ [Non-text portions of this message have been removed]
