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
What is a function in c?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Can we access the array using a pointer in c language?
Why c language?
How many keywords (reserve words) are in c?
Does c have an equivalent to pascals with statement?
How can I convert a number to a string?
What are the functions to open and close the file in c language?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Define macros.
Compare and contrast compilers from interpreters.
What does int main () mean?
Explain continue keyword in c
Difference between linking and loading?
What are Macros? What are its advantages and disadvantages?