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 is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What are pointers used for c++?
Can a program run without main in c++?
Explain public, protected, private in c++?
What is the default access level?
What is the full form of ios?
What is the difference between the parameter to a template and the parameter to a function?
What is polymorphism & list its types in c++?
What is the use of class in c++?
What are the main features of c++?
What is main function in c++ with example?
Define 'std'.
Is c++ a dying language?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is enum c++?