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
What is enum class in c++?
Explain rtti.
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is data binding in c++?
Why do we use using namespace std in c++?
How should runtime errors be handled in c++?
Can c++ do everything c can?
Explain the static member function.
How many characters are recognized by ANSI C++?
Can class objects be passed as function arguments?
What is a terminating character in c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What does I ++ mean in c++?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
Explain the concept of memory leak?