how to swap two integers 1 and 32767 without using third
variable
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the different types of constants?
Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?
WAP to find that given no is small or capital
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.
Are local variables initialized to zero by default in c?
do you think its fraud or original company?
What is the difference b/w Structure & Array?
How can you find the day of the week given the date?
what is dangling pointer?
What are the types of type specifiers?
What is the use of typedef in structure in c?
What is #line?