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

What is the use of function pointer?

992


Can we use pointers in c++?

1024


What is the purpose of templates in c++?

1003


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.

1101


What is rvalue?

1107


How to tokenize a string in c++?

1026


what are function pointers?

1007


How the keyword struct is different from the keyword class in c++?

1006


What c++ library is string in?

1022


How can you create a virtual copy constructor?

1059


Which operator cannot be overloaded c++?

985


Which is the best c++ compiler?

1018


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

1138


What is the use of 'using' declaration in c++?

1115


What is the best c++ book for beginners?

1118