how to swap two numbers with out using temp variable
Answer Posted / vaibhav meena
Its simple:
For Integer Values
A^=B^=A
and with arithmetic operators :
All the above answers are right
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
give me an example for testing a program showing the test path .show how the test is important and complex.
Why is it necessary to use a reference in the argument to the copy constructor?
What is format for defining a structure?
What is purpose of new operator?
What is meant by the term name mangling in c++?
Explain all the C++ concepts using examples.
What is a c++ vector?
Does a derived class inherit or doesn't inherit?
Can member functions be private?
What is abstraction in c++ with example?
Which c++ operator cannot overload?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Why was c++ created?
What is else syntax in c++?
Can recursive program be written in C++?