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 strings without using any third variable ?

Answers were Sorted based on User's Feedback



how to swap two strings without using any third variable ?..

Answer / sivaraj

Is the Answer 1 posted by ashutosh works for nagative numbers ?
best answer :

a=a^b;
b=a^b;
a=a^b;

Is This Answer Correct ?    7 Yes 15 No

Post New Answer

More C++ General Interview Questions

Describe friend function & its advantages.

0 Answers   TCS,


How compile and run c++ program in turbo c++?

0 Answers  


Write about an iterator class?

0 Answers  


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

0 Answers  


What is private public protected in c++?

0 Answers  


How many bit combinations are there in a byte?

13 Answers   Intel, Microsoft,


Which is best c++ or java?

0 Answers  


Define anonymous class.

0 Answers  


What is encapsulation in c++ with example?

0 Answers  


What are templates? where we should use it?

2 Answers   Alcatel,


What do you mean by a template?

0 Answers  


What is the use of the this pointer?

3 Answers  


Categories