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
Can c++ do everything c can?
Explain the concept of dynamic allocation of memory?
What is conditions when using boolean operators?
Can a function take variable length arguments, if yes, how?
what is pre-processor in C++?
What is the use of c++ programming language in real life?
Which is not a valid keyword a) public b) protected c) guarded
What is difference between rand () and srand ()?
Explain Text Manipulation Routines?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is the oldest programming language?
What is guard code in c++?
What do you mean by “this” pointer?
Can we change the basic meaning of an operator in c++?
How does list r; differs from list r();?