how to swap two integers 1 and 32767 without using third
variable
Answer Posted / jonu
a=1;
b=32767;
a=(a+b)-(b=a);
printf("%d %d",a,b);
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How does selection sort work in c?
What are header files in c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
How can I recover the file name given an open stream?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Write a program for finding factorial of a number.
What is #line?
Should a function contain a return statement if it does not return a value?
Why can’t we compare structures?
Differentiate between the expression “++a” and “a++”?
Can we declare variables anywhere in c?
Explain union.
What are near, far and huge pointers?
Do you know the difference between exit() and _exit() function in c?
What is memory leak in c?