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
Give example of a pure virtual function in c++?
What are the operators in c++?
Differentiate between an external iterator and an internal iterator?
Explain linked list using c++ with an example?
which operator is used for performing an exponential operation a) > b) ^ c) none
How is data hiding achieved in c++?
What is a stack c++?
What are libraries in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is a c++ class?
Which bitwise operator is used to check whether a particular bit is on or off?
How do you print a string on the printer?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What are the effects after calling the delete this operator ?
How long will it take to learn programming?