how to swap two strings without using any third variable ?
Answer Posted / ruchi
Hi ashutosh,
This technique is used to swap numeric values without using
3rd vaariable not for strings .
We can do it by using binary shift operators.
Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
What is the size of integer variable?
Write about the retrieval of n number of objects during the process of delete[]p?
Do you know about C++ 11 standard?
What is vector pair in c++?
Is overriding possible in c++?
What are the two types of comments, and how do they differ?
Can member functions be private?
What is setf in c++?
Explain the different access specifiers for the class member in c++.
What is class syntax c++?
What is the difference between an enumeration and a set of pre-processor # defines?
Are vectors faster than arrays?
List the special characteristics of constructor.
How is data hiding achieved in c++?
What are the uses of c++ in the real world?