how to swap two numbers with out using temp variable
Answer Posted / raja
if a=10& b=20
a=a+b //a=30
b=a-b //b=10
a=a-b //a=20
finally we got a=20,b=10
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is polymorphism in c++? Explain with an example?
Why is c++ still best?
Who made c++?
What are the two types of comments, and how do they differ?
What is else syntax in c++?
Where do I find the current c or c++ standard documents?
Define virtual constructor.
What is an object in c++?
What is friend class in c++ with example?
What is c++ mutable?
What is the auto keyword good for in c++?
Difference between struct and class in terms of access modifier.
How did c++ get its name?
Can you please explain the difference between overloading and overriding?
Why c++ is the best language?