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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

why r u join this company? give solid resons.

16 Answers   IBM, Infosys, TCS,


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

0 Answers  


an algorithem for the implementation of circular doubly linked list

1 Answers  


When is an interface "good"?

1 Answers  


write a program to display all prime numbers

0 Answers  






what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); }

20 Answers   Infosys,


What does the function toupper() do?

0 Answers  


What is function prototype in c language?

0 Answers  


Is register a keyword in c?

0 Answers  


What is a spanning Tree?

1 Answers   TCS,


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

0 Answers  


What is calloc in c?

0 Answers  


Categories