Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance

Answer Posted / surendra jhajhra

int x,y;

x =x+y;
y =x-y;
x =x-y;

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I find out the size of a file, prior to reading it in?

1187


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

2164


Explain the difference between call by value and call by reference in c language?

1122


Why void main is used in c?

1062


Explain how can a program be made to print the name of a source file where an error occurs?

1207


Do you know the use of fflush() function?

1072


Why is python slower than c?

1101


Do character constants represent numerical values?

1357


In a switch statement, explain what will happen if a break statement is omitted?

1084


Explain what are the advantages and disadvantages of a heap?

1094


What is header file in c?

1080


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2334


What is "Duff's Device"?

1175


What is unary operator?

1115


Explain what is a 'locale'?

1091