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 does n mean in c++?
Explain the difference between c & c++?
What does obj stand for?
What are the uses of static class data?
Define pointers?
What is the c++ code?
What is the difference between set and map in c++?
Explain polymorphism?
Eplain extern keyword?
Are strings immutable in c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Explain selection sorting?
What do you understand by zombie objects in c++?
What is type of 'this' pointer?
Can we sort map in c++?