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 |
Why pointers are used in c?
Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.
write an algorithm and a program to count the number of elements in a circularly singly linked list
what is pointer
Can a pointer point to null?
Explain what does it mean when a pointer is used in an if statement?
Why are all header files not declared in every c program?
How do I round numbers?
How many types of arrays are there in c?
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
which do you prefer C or Pascal?
What is meant by type specifiers?