write a program to swap Two numbers without using temp variable.
Answer Posted / prasanna
Swapping two variables in a single line with no temporary
variable..
b=(a+b)-(a=b);
so.. simple..
Prasanna. (prasanna7287@yahoo.co.in)
Is This Answer Correct ? | 351 Yes | 140 No |
Post New Answer View All Answers
Explain the use of #pragma exit?
What are extern variables in c?
What is meant by realloc()?
What are the advantages of the functions?
which is an algorithm for sorting in a growing Lexicographic order
What are the characteristics of arrays in c?
What is the difference between typedef struct and struct?
What is scope rule of function in c?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
How to declare a variable?
What are header files and what are its uses in C programming?
What is #include in c?
Do you know the purpose of 'register' keyword?
Explain c preprocessor?
Which is better oop or procedural?