how to swap two numbers with out using temp variable
Answer Posted / kusum
if (a>b)
temp=a;
a=b;
b=temp;
| Is This Answer Correct ? | 0 Yes | 21 No |
Post New Answer View All Answers
What is the basic difference between C and C++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is a down cast?
Is string an object in c++?
Explain "const" reference arguments in function?
Differentiate between a copy constructor and an overloaded assignment operator.
What is a binary file? List the merits and demerits of the binary file usagein C++.
What are the advantages of using typedef in a program?
What is general format for a prototype?
Why c++ is faster than java?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is the disadvantage of using a macro?
Is java easier than c++?
What is class definition in c++ ?
What are guid?