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 is this pointer in c++?
Where do I find the current c or c++ standard documents?
Is c++ free?
Why do you use the namespace feature?
What is the difference between the compiler and the preprocessor?
What is the use of "new" operator?
What is exception handling? Does c++ support exception handling?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What is a pointer with example?
Comment on local and global scope of a variable.
What is encapsulation in C++? Give an example.
Which c++ compiler is best?
Write about the scope resolution operator?
What gives the current position of the put pointer?
Difference between an inspector and a mutator