How many ways are there to swap two numbers without using
temporary variable? Give the each logic.
Answer Posted / kk
three logic
xor -> a^=b^=a^=b;
addition and subtraction,
multiply and division .......
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
How do I send escape sequences to control a terminal or other device?
How can you tell whether a program was compiled using c versus c++?
What is a macro, and explain how do you use it?
hi send me sample aptitude papers of cts?
Explain is it valid to address one element beyond the end of an array?
What is the benefit of using #define to declare a constant?
Who is the founder of c language?
How variables are declared in c?
What is the difference between array and structure in c?
What are bitwise shift operators in c programming?
Why c is a procedural language?
What are the disadvantages of a shell structure?
How will you delete a node in DLL?
Is main is user defined function?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.