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 are the differences between the function prototype and the function defi-nition?

1111


How many different levels of pointers are there?

1219


Why pointer is used in c++?

1174


What is the purpose of templates in c++?

1039


What is the full name of logo?

1125


How to declare a function pointer?

1007


Differentiate between C and C++.

1263


What are c++ data types?

1177


What is the use of default constructor?

1106


Search for: what is pair in c++?

1123


What is scope resolution operator in c++ with example?

1047


What are c++ redistributables?

1047


Explain what is polymorphism in c++?

1134


What is low level language in simple words?

1035


What are the advantages of using pointers in a program?

1149