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
Can you sort a set c++?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
If you don’t declare a return value, what type of return value is assumed?
What is the difference between ++ count and count ++?
What apps are written in c++?
You want to link a c++ program to c functions. How would you do it?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is the purpose of ios::basefield in the following statement?
What are the advantages of prototyping?
Define a pdb file.
What is a static member?
Can recursive program be written in C++?
Difference between Abstraction and encapsulation in C++?
In a function declaration, what does extern mean?
What are the various operations performed on stack?