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
Explain friend class?
What are arrays c++?
Out of fgets() and gets() which function is safe to use?
What are the extraction and insertion operators in c++? Explain with examples.
Explain 'this' pointer and what would happen if a pointer is deleted twice?
Explain virtual destructor?
Is there a c++ certification?
Tell me difference between constant pointer and pointer to a constant.
What is math h in c++?
Explain container class.
What are formatting flags in ios class?
Write about the members that a derived class can add?
What is the use of turbo c++?
How to tokenize a string in c++?
Can I learn c++ without c?