can we declare a function in side the structure?
Answer Posted / savita
It can be possible in C++, but not in C.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
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 are the two types of structure?
Is this program statement valid? INT = 10.50;
What language is windows 1.0 written?
What is volatile variable in c with example?
How many identifiers are there in c?
What does return 1 means in c?
If you know then define #pragma?
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 typedf?
what is the format specifier for printing a pointer value?
How do you determine the length of a string value that was stored in a variable?
What are the rules for identifiers in c?
Write a code of a general series where the next element is the sum of last k terms.
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array