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 the use of function pointer?
Can we use pointers in c++?
What is the purpose of templates 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 rvalue?
How to tokenize a string in c++?
what are function pointers?
How the keyword struct is different from the keyword class in c++?
What c++ library is string in?
How can you create a virtual copy constructor?
Which operator cannot be overloaded c++?
Which is the best c++ compiler?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
What is the use of 'using' declaration in c++?
What is the best c++ book for beginners?