what is the different between if-else and switch statment
(other than syntax)
Answer Posted / nabila
if else use only the statements that are in two condition
switch atatements use different cases
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is malloc return c?
Do you know pointer in c?
What does node * mean?
Is using exit() the same as using return?
Explain the properties of union.
What is the purpose of realloc()?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is difference between && and & in c?
Write a program to reverse a string.
What is the most efficient way to count the number of bits which are set in an integer?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is the difference between the expression “++a” and “a++”?
Can two or more operators such as and be combined in a single line of program code?
What is the difference between formatted&unformatted i/o functions?
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