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 ?

Answer Posted / mathias karlsson

X = X & Y
Y = X.Substring(&H0, X.Length - Y.Length)
X = X.Substring(X.Length - Y.Length, Y.Length)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a nested class.

1126


What is the importance of mutable keyword?

1075


What does override mean in c++?

1118


What is the role of copy constructor in copying of thrown objects?

1117


What is different in C++, compare with unix?

1154


What are the c++ access specifiers?

1479


When do we run a shell in the unix system? How will you tell which shell you are running?

1025


What is time_t c++?

1202


Discuss the possibilities related to the termination of a program before entering the mainq method?

1002


What is else if syntax?

1214


What is enum c++?

1335


Will rust take over c++?

1114


Explain about Garbage Collector?

1163


Which programming language's unsatisfactory performance led to the discovery of c++?

1396


How would you differentiate between a pre and post increment operators while overloading?

1196