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
Why header files are used?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Write a program to print “hello world” without using semicolon?
Hi can anyone tell what is a start up code?
List the difference between a While & Do While loops?
What is main return c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
How can my program discover the complete pathname to the executable from which it was invoked?
Explain the difference between #include "..." And #include <...> In c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Why doesnt that code work?
How can I do peek and poke in c?
What 'lex' does?
Explain how do you determine whether to use a stream function or a low-level function?