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
What happens when you make call 'delete this;'?
What is a pointer with example?
Which software is best for c++ programming?
What is constructor c++?
What are the four partitions in which c++ compiler divides the ram?
What is the insertion operator and what does it do?
What is new in c++?
What are keywords in c++?
What is iterator in c++?
Define friend function.
How new/delete differs from malloc()/free?
When should overload new operator on a global basis or a class basis?
Give example of a pure virtual function in c++?
What is a singleton class c++?
What is this weird colon-member (" : ") syntax in the constructor?