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
How do you decide which integer type to use?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
Which coding certification is best?
What do the header files usually contains?
What is wrapper class in c++?
What is enum class in c++?
How many keywords are used in c++?
What is the use of namespace std in C++?
When does a name clash occur in c++?
How to allocate memory dynamically for a reference?
How is new() different from malloc()?
What is a c++ object?
What is pointer with example?
describe private access specifiers?
What is stream and its types in c++?