How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / surendra jhajhra
int x,y;
x =x+y;
y =x-y;
x =x-y;
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of ftell?
What is a constant and types of constants in c?
What is the difference between union and structure in c?
What is sizeof return in c?
What are local static variables?
In a switch statement, explain what will happen if a break statement is omitted?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Is using exit() the same as using return?
Why is c used in embedded systems?
what are bit fields? What is the use of bit fields in a structure declaration?
Explain what is a program flowchart and explain how does it help in writing a program?
What are the types of data structures in c?
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 a void * in c?
What is a structure in c language. how to initialise a structure in c?