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 an undefined reference/unresolved external symbol error and how do I fix it?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Name the debugging methods that are used to solve problems?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
How can we access protected and private members of a class?
Can a Structure contain a Pointer to itself?
Is swift faster than go?
What are pointer-to-members? Explain.
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
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
What is the advantage of c++ over c?
Why c++ is better than c language?
What is c++ hash?
What are friend classes?
What is c++ library?