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 interpreters and compilers?
Describe linked list using C++ with an example.
Carry out conversion of one object of user-defined type to another?
How to access a variable of the structure?
Differences between private, protected and public and give examples.
Do you know about C++ 11 standard?
What is pointer to array in c++?
What are c++ tokens?
What is null pointer and void pointer?
Which software is used for c++ programming?
Can c++ do everything c can?
Write about the retrieval of n number of objects during the process of delete[]p?
What are dynamic type checking?
What is stl containers in c++?
What is the basic difference between C and C++?