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 protected keyword used for?
What is a dynamic binding in c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Is c better than c++?
What do manipulators do?
What are friend functions in C++?
What is srand c++?
What is atoi?
What is the full form of ios?
Name the implicit member functions of a class.
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is the use of c++ programming language in real life?
What is the difference between a declaration and a definition?
What is the use of setfill in c++?
How do you flush std cout?