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
The file stdio.h, what does it contain?
write a program fibonacci series and palindrome program in c
When should the register modifier be used? Does it really help?
How to delete a node from linked list w/o using collectons?
Are global variables static in c?
Why is c platform dependent?
What is multidimensional arrays
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Can you write the algorithm for Queue?
What is the difference between malloc() and calloc() function in c language?
What is a macro, and explain how do you use it?
What language is windows 1.0 written?
What is the difference between #include and #include 'file' ?
Explain how can I convert a string to a number?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers