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

What is enum class in c++?

1256


Explain rtti.

1086


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

3466


What is data binding in c++?

961


Why do we use using namespace std in c++?

1083


How should runtime errors be handled in c++?

1148


Can c++ do everything c can?

1087


Explain the static member function.

1188


How many characters are recognized by ANSI C++?

1424


Can class objects be passed as function arguments?

1066


What is a terminating character in c++?

1395


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1076


What does I ++ mean in c++?

1107


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1193


Explain the concept of memory leak?

1114