how to swap two numbers with out using temp variable
Answer Posted / dd
a=1
b=2
a=a+(b-a)
b=(a+b)-b
Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
What are vtable and vptr?
Is std :: string immutable?
What is a v-table?
How can you create a virtual copy constructor?
Can you declare an array without a size in c++?
What is the use of volatile variable?
What does obj stand for?
Differentiate between the manipulator and setf( ) function?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Why do we use vector in c++?
What is abstract keyword in c++?
What is difference between malloc()/free() and new/delete?
Can we declare a base-class destructor as virtual?
What is the function of I/O library in C++ ?