how to swap two numbers with out using temp variable
Answer Posted / arundhati
a^=b^=a^=b;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is math h in c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Explain how the virtual base class is different from the conventional base classes of the opps.
What is the first name of c++?
What are the five basic elements of a c++ program?
How does the copy constructor differ from the assignment operator (=)?
What is the difference between a declaration and a definition?
What are compilers in c++?
What is a dynamic binding in c++?
Why do we use iterators?
What is a constant reference?
What does asterisk mean in c++?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
How a pointer differs from a reference?