wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What does 4d mean in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the purpose of the preprocessor directive error?
What do you understand by friend-functions? How are they used?
What is the correct declaration of main?
Write a program to print factorial of given number using recursion?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Explain how can I convert a number to a string?
If you know then define #pragma?
Is it fine to write void main () or main () in c?
How is a structure member accessed?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is malloc and calloc?
write a program to rearrange the array such way that all even elements should come first and next come odd
What is pass by reference in functions?