how to swap two strings without using any third variable ?
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the different operators in C++?
Can we use pointers in c++?
Why do we need pointers?
How long does it take to get good at leetcode?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
What does int * mean in c++?
What is the difference between a reference and a pointer?
WHO DEVELOPED C++?
What is c++ map?
How do pointers work?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
How do you invoke a base member function from a derived class in which you have not overridden that function?