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


Please Help Members By Posting Answers For Below Questions

What does typedef struct mean?

664


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

1433


What are data types in c language?

590


Are bit fields portable?

681


Why main is used in c?

593






Do you know null pointer?

616


how to build a exercise findig min number of e heap with list imlemented?

1614


Is c still used?

606


largest Of three Number using without if condition?

1010


How many bytes is a struct in c?

730


What do you mean by a sequential access file?

631


What are the three constants used in c?

549


What is the use of printf() and scanf() functions?

640


Explain can you assign a different address to an array tag?

648


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

2521