how to swap two numbers with out using temp variable
Answer Posted / pranav
//swaping of 2 numbers without using temp variable
//a=5 & b=6
a=a+b; //a=30
b=a-b; //b=5
a=a-b; //a=6
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are single and multiple inheritances in c++?
Implement stack operations with pointers with appropriate exception checks.
What is the full form of stl in c++?
Why was c++ created?
give me an example for testing a program showing the test path .show how the test is important and complex.
When do we run a shell in the unix system? How will you tell which shell you are running?
Write about the use of the virtual destructor?
Are strings immutable in c++?
What is the standard template library (stl)?
Do you know what are pure virtual functions?
Explain the uses of static class data?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is the protected keyword used for?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is pointer -to-members in C++? Give their syntax?