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
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Differentiate between an external iterator and an internal iterator?
Write a C++ Program to check whether a number is prime number or not?
Can I learn c++ without c?
How long it will take to learn c++?
What is c++ array?
When do we run a shell in the unix system?
What does ctime() do?
What do you mean by public protected and private in c++?
Is c++ the hardest language?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Should the this pointer can be used in the constructor?
You run a shell on unix system. How would you tell which shell are you running?
Write about the local class and mention its use?
Explain the term memory alignment?