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 is class and structure in c++?
What are the stages in the development cycle?
Is dev c++ a good compiler?
Tell me can a pure virtual function have an implementation?
What is the default width for ouputting a long integer using the insertion operator?
Explain data encapsulation?
What is friend class in c++ with example?
Explain the difference between using macro and inline functions?
What are the uses of c++ in the real world?
Where the memory to the static variables is allocated?
What data encapsulation is in c++?
Define vptr.
What are the different types of polymorphism in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is the use of 'this' pointer?