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
How do I get good at c++ programming?
Differentiate between a copy constructor and an overloaded assignment operator.
what is VOID?
Describe linkages and types of linkages?
How one would use switch in a program?
Why is c++ still popular?
What is virtual base class uses?
Where and why do I have to put the "template" and "typename" keywords?
Program to check whether a word is a sub-string or not of a string typed
What are single and multiple inheritances in c++?
Where the memory to the static variables is allocated?
What is the full name of logo?
What is buffer and example?
List the advantages of inheritance.
Differentiate between structure and class in c++.