how to swap two integers 1 and 32767 without using third
variable
Answer Posted / vidhubala-j
int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the difference between new and malloc functions?
What is c language used for?
What is masking?
What do you mean by invalid pointer arithmetic?
is it possible to create your own header files?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is LINKED LIST? How can you access the last element in a linked list?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Explain what is the difference between the expression '++a' and 'a++'?
write a c program for swapping two strings using pointer
difference between object file and executable file
Why is c still so popular?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What is echo in c programming?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical