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


Please Help Members By Posting Answers For Below Questions

What is the size of integer variable?

605


Write about the retrieval of n number of objects during the process of delete[]p?

580


Do you know about C++ 11 standard?

644


What is vector pair in c++?

723


Is overriding possible in c++?

584






What are the two types of comments, and how do they differ?

580


Can member functions be private?

604


What is setf in c++?

595


Explain the different access specifiers for the class member in c++.

556


What is class syntax c++?

611


What is the difference between an enumeration and a set of pre-processor # defines?

847


Are vectors faster than arrays?

575


List the special characteristics of constructor.

741


How is data hiding achieved in c++?

581


What are the uses of c++ in the real world?

575