What is the real difference between arrays and pointers?
Answer Posted / subhasmita swain
arrays stores a block of contigious memory .where as
Pointers are save the base address of the block of
memory,it may be a array of datas.pointers can resize them
shelves by pointing to a different block of memory,in
contrast arrays are fixed size.
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What does typedef struct mean?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What are data types in c language?
Are bit fields portable?
Why main is used in c?
Do you know null pointer?
how to build a exercise findig min number of e heap with list imlemented?
Is c still used?
largest Of three Number using without if condition?
How many bytes is a struct in c?
What do you mean by a sequential access file?
What are the three constants used in c?
What is the use of printf() and scanf() functions?
Explain can you assign a different address to an array tag?
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