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
What is function prototype?
How can I open a file so that other programs can update it at the same time?
What are # preprocessor operator in c?
What is adt in c programming?
What does typeof return in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What standard functions are available to manipulate strings?
What is volatile c?
What’s a signal? Explain what do I use signals for?
while initialization of array why we use a[][2] why not a[2][]...?
What is the difference between union and anonymous union?
When should I declare a function?
Explain what are header files and explain what are its uses in c programming?
Is there a way to compare two structure variables?
Can you mix old-style and new-style function syntax?