Answer Posted / vl
The pre processor directives are the code line which are
replaced by the actuall value (header file and Macro
replacements) before compiler start the syntax checks.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Is main is user defined function?
How to create struct variables?
Why we use stdio h in c?
Explain c preprocessor?
How can I use a preprocessorif expression to ?
Why & is used in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is the modulus operator?
Write a program to check whether a number is prime or not using c?
Is javascript based on c?
What are qualifiers in c?
What happens if you free a pointer twice?
What are the types of functions 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