how to swap two numbers with out using temp variable
Answer Posted / prasannaroy
a=10;
b=20;
b=a+b-(a=b);
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the difference between a baller and a reference in C++?
What is #include iostream in c++?
What is a template in c++?
Is arr and &arr are same expression for an array?
What is the difference between global variables and static varables?
How do you establish a has-a relationship?
What is ios class in c++?
Write about the access privileges in c++ and also mention about its default access level?
How do I make turbo c++ full screen?
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 atoi in c++?
What is the use of main function in c++?
What is flush programming?
What is the function to call to turn an ascii string into a long?
What it is and how it might be called (2 methods).