how to swap two integers 1 and 32767 without using third
variable
Answer Posted / susmita dutta chowdhury
b=(a+b)-(a=b);
printf("%d %d ",a,b);
explanation:-
b=(1+32767)-(a=32767)
b=32768-32767
b=1
a=32767
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you return multiple values from a function?
What is this infamous null pointer, anyway?
write a program to find out prime number using sieve case?
Explain what is the difference between functions getch() and getche()?
What is the use of extern in c?
What is the modulus operator?
Are enumerations really portable?
What is the difference between variable declaration and variable definition in c?
I need previous papers of CSC.......plz help out by posting them.......
Is array a primitive data type in c?
Why isnt there a numbered, multi-level break statement to break out
Differentiate between #include<...> and #include '...'
How do I read the arrow keys? What about function keys?
What is string length in c?
Explain the difference between getch() and getche() in c?