how to swap two strings without using any third variable ?
Answer Posted / mathias karlsson
X = X & Y
Y = X.Substring(&H0, X.Length - Y.Length)
X = X.Substring(X.Length - Y.Length, Y.Length)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Define a nested class.
What is the importance of mutable keyword?
What does override mean in c++?
What is the role of copy constructor in copying of thrown objects?
What is different in C++, compare with unix?
What are the c++ access specifiers?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is time_t c++?
Discuss the possibilities related to the termination of a program before entering the mainq method?
What is else if syntax?
What is enum c++?
Will rust take over c++?
Explain about Garbage Collector?
Which programming language's unsatisfactory performance led to the discovery of c++?
How would you differentiate between a pre and post increment operators while overloading?