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 to swap two numbers with out using temp variable

Answer Posted / vaibhav meena

Its simple:
For Integer Values

A^=B^=A

and with arithmetic operators :

All the above answers are right

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does count ++ do in c++?

1254


When does a 'this' pointer get created?

1150


What is void pointer in c++ with example?

1133


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1609


What are c++ stream classes?

1095


What is difference between class and function?

1153


What are references in c++?

1191


What is pointer to array in c++?

1238


Does c++ support multilevel and multiple inheritances?

1058


What is endl c++?

1154


What are the two shift operators and what are their functions?

1141


What does I ++ mean in c++?

1173


What do you understand by pure virtual function? Write about its use?

1044


What is the difference between multiple and multilevel inheritance in c++?

1179


What's the order in which the objects in an array are destructed?

1465