What is the real difference between arrays and pointers?

Answer Posted / pushpanjali panda

Arrays automatically allocate space, but can't be relocated
or resized. Pointers must be explicitly assigned to point
to allocated space (perhaps using malloc), but can be
reassigned (i.e. pointed at different objects) at will, and
have many other uses besides serving as the base of blocks
of memory.

Is This Answer Correct ?    56 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers? What are stacks and queues?

573


explain what is fifo?

630


Explain about block scope in c?

657


what are enumerations in C

721


What does static variable mean in c?

646






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

642


Is c procedural or object oriented?

575


Explain about C function prototype?

604


can any one provide me the notes of data structure for ignou cs-62 paper

1701


Describe how arrays can be passed to a user defined function

777


What is structure data type in c?

567


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1354


how to count no of words,characters,lines in a paragraph.

3900


How can you avoid including a header more than once?

564


what is the difference between class and unio?

1856