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
What is endl?
Explain the properties and principles of oop.
When does the c++ compiler create temporary variables?
Is map thread safe c++?
What is a null object in c++?
What are default parameters? How are they evaluated in c++ function?
Explain terminate() and unexpected() function?
What do you mean by ‘void’ return type?
Explain the differences between private, public and protected and give examples.
What is std :: endl?
Explain about Garbage Collector?
Using a smart pointer can we iterate through a container?
What is static class data?
Is c++ proprietary?
How can you create a virtual copy constructor?