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
Does c++ support exception handling?
What do you mean by funtion prototype?
In c++, what is the difference between method overloading and method overriding?
Declare a class vehicle and make it an abstract data type.
Where and why do I have to put the "template" and "typename" keywords?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What is class definition in c++ ?
Explain the static storage classes in c++.
What is the most powerful coding language?
What is the difference between containment and delegation?
What is the difference between the functions rand(), random(), srand() and randomize()?
Can I learn c++ in a week?
What is null and void pointer?
What is meant by a delegate?
How a pointer differs from a reference?