how to swap two numbers with out using temp variable
Answer Posted / dd
a=1
b=2
a=a+(b-a)
b=(a+b)-b
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
Explain Text Manipulation Routines?
How do we implement inheritance in c++?
How to access a variable of the structure?
What are the extraction and insertion operators in c++?
Do class declarations end with a semicolon?
What are the differences between new and malloc?
What is a container class?
Where and why do I have to put the "template" and "typename" keywords?
What is algorithm in c++ programming?
How can a called function determine the number of arguments that have been passed to it?
How would you implement a substr() function that extracts a sub string from a given string?
What is a constructor in c++ with example?
How can you link a c program with a c function?
How can you specify a class in C++?
What is operator overloading in c++ example?