how to swap two numbers with out using temp variable
Answer Posted / sachin patil
a = 5;
b = 10;
a = a+b;
b = a-b;
a = a-b;
| Is This Answer Correct ? | 55 Yes | 5 No |
Post New Answer View All Answers
What is time h in c++?
How can you tell what shell you are running on unix system?
Can a function take variable length arguments, if yes, how?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How const int *ourpointer differs from int const *ourpointer?
When are exception objects created?
What is the arrow operator in c++?
How would you find out if a linked-list is a cycle or not?
What are the various oops concepts in c++?
Which programming language's unsatisfactory performance led to the discovery of c++?
What is constructor and destructor in c++?
How do I start a c++ project?
What is the limitation of cin while taking input for character array?
What are the benefits of operator overloading?
Which sort does c++ use?