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 a pointer and how it is initialized?
How will you divide two numbers in a MACRO?
Write a program to reverse a linked list in c.
What is graph in c?
What is selection sort in c?
What is the use of typedef in structure in c?
what will be maximum number of comparisons when number of elements are given?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What are the valid places to have keyword “break”?
What are 'near' and 'far' pointers?
Can variables be declared anywhere in c?
What is a function in c?
Explain what are compound statements?
What are the types of variables in c?
How do you redirect a standard stream?