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 String values without using a
third variable?

Answer Posted / parthag

In C#

string str1 = "First";
string str2 = "Second";
str1 = string.Concat(str1, str2);
str2 = str1.Replace(str2,"");
str1 = str1.Replace(str2,"");

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of operations? Draw the figure for shift and rotate operations?

3276


how CLR identify vb file?

2977


what is the work of 1tier,2tier,&ntier? Plz Explain it!

2414


What is the difference between COM and CORBA?

1138


how to remove header and footer in jcl using sort utility

5495


i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......

2107


what is session state?

1903


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

2729


I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?

6061


What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids

2114


Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)

554


When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.

1861


I am looking for selenium RC online Training in chennai. can any one tell me the best institute

1916


I need source code for Enrollment System using Visual Basic 6.0/2008 database MS Access 2007 for my school thesis project...please help me..kindly send in my email jpinedamcp@gmail.com

1988


what is delegate and how works delegate and event.

2151