swap two integer variables without using a third temporary
variable?
Answer Posted / sumit salve
a=a+b-(b=a);
or
a=a*b/(b=a);
this will also swap two numbers!!!
Thank You...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are keywords in c with examples?
Write a program on swapping (100, 50)
What is action and transformation in spark?
What are disadvantages of C language.
What is multidimensional arrays
What is c variable?
Explain continue keyword in c
What is #include called?
what is use of malloc and calloc?
How can I direct output to the printer?
Explain about block scope in c?
What do you mean by Recursion Function?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Why can't I perform arithmetic on a void* pointer?
What are the similarities between c and c++?