how to swap two numbers with out using temp variable
Answer Posted / raja
if a=10& b=20
a=a+b //a=30
b=a-b //b=10
a=a-b //a=20
finally we got a=20,b=10
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is tellg () in c++?
How can I improve my c++ skills?
List the issue that the auto_ptr object handles?
What are the defining traits of an object-oriented language?
Briefly describe a B+ tree. What is bulk loading in it?
What is the use of setfill in c++?
What is set in c++?
What is c++ flowchart?
Describe about storage allocation and scope of global, extern, static, local and register variables?
Should I learn c++ c?
Define stacks. Provide an example where they are useful.
Is empty stack c++?
What will happen if a pointer is deleted twice?
Is c++ an integer?
How do you initialize a string in c++?