how to swap two strings without using any third variable ?

Answer Posted / sivaraj

Is the Answer 1 posted by ashutosh works for nagative numbers ?
best answer :

a=a^b;
b=a^b;
a=a^b;

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

547


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

601


Define the process of error-handling in case of constructor failure?

565


what is a reference variable in C++?

663


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1739






Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

632


What is boyce codd normal form in c++?

691


What is the meaning of c++?

542


What are associate containers?

616


What are the characteristics of friend functions?

564


Is c++ a dying language?

585


When should overload new operator on a global basis or a class basis?

611


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

694


Write a code/algo to find the frequency of each element in an array?

604


How would you call C functions from C++ and vice versa?

634