What is the real difference between arrays and pointers?
Answer Posted / pravinash
array is collection of similar datatype. it is a static
memory allocation means we can not increment and decrement
the arry size once we allocated. and we can not increment
the base address, reassign address.
pointer is a dynamic memory allocation. we can allocate the
size as we want, assigning into another variable and base
address incrementation is allowed.
| Is This Answer Correct ? | 72 Yes | 9 No |
Post New Answer View All Answers
Are pointers really faster than arrays?
Array is an lvalue or not?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Why array is used in c?
What is a node in c?
What is variable and explain rules to declare variable in c?
What are the different file extensions involved when programming in C?
write a program to create a sparse matrix using dynamic memory allocation.
Explain how can I open a file so that other programs can update it at the same time?
What is the scope of global variable in c?
What are logical errors and how does it differ from syntax errors?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is array of structure in c programming?
What is the purpose of void in c?
How do I create a directory? How do I remove a directory (and its contents)?