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 / kollu.praveen

var1="String1"
var2="String2"
var1=var1+var2
var2=mid(var1,1,Len(var1)-Len(var2))
print var2
var1=mid(var1,(Len(var1)-Len(var2)+1),(Len(var2)+1))
print var1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an undefined reference/unresolved external symbol error and how do I fix it?

1078


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2424


Name the debugging methods that are used to solve problems?

1037


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

1103


How can we access protected and private members of a class?

1052


Can a Structure contain a Pointer to itself?

1069


Is swift faster than go?

1043


What are pointer-to-members? Explain.

1067


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1083


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1509


What is the advantage of c++ over c?

967


Why c++ is better than c language?

955


What is c++ hash?

1056


What are friend classes?

1016


What is c++ library?

993