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
Explain the differences between list x; & list x();.
What are the various arithmetic operators in c++?
What are the various situations where a copy constructor is invoked?
What is the full form of stl in c++?
What is meant by the term name mangling in c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Explain virtual destructor?
Can we inherit constructor in c++?
What is pair in c++?
What is ostream in c++?
Is atoi safe?
Can a function take variable length arguments, if yes, how?
What is a multimap c++?
What are manipulators used for?
What are built-in functions? What is the syntax for the definition?