how to swap two numbers with out using temp variable
Answer Posted / vaibhav meena
Its simple:
For Integer Values
A^=B^=A
and with arithmetic operators :
All the above answers are right
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What are the differences between the function prototype and the function defi-nition?
How many different levels of pointers are there?
Why pointer is used in c++?
What is the purpose of templates in c++?
What is the full name of logo?
How to declare a function pointer?
Differentiate between C and C++.
What are c++ data types?
What is the use of default constructor?
Search for: what is pair in c++?
What is scope resolution operator in c++ with example?
What are c++ redistributables?
Explain what is polymorphism in c++?
What is low level language in simple words?
What are the advantages of using pointers in a program?