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 / arundhati

a^=b^=a^=b;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give example of a pure virtual function in c++?

1180


What are the operators in c++?

1122


Differentiate between an external iterator and an internal iterator?

1005


Explain linked list using c++ with an example?

1092


which operator is used for performing an exponential operation a) > b) ^ c) none

1069


How is data hiding achieved in c++?

1089


What is a stack c++?

1018


What are libraries in c++?

1079


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1143


What is a c++ class?

1108


Which bitwise operator is used to check whether a particular bit is on or off?

1069


How do you print a string on the printer?

1046


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2321


What are the effects after calling the delete this operator ?

1067


How long will it take to learn programming?

1068