What is the real difference between arrays and pointers?

Answer Posted / rag

ARRAYS are allocated at compile time.
POINTERS are alocated at run time.
USE POINTERS FOR PROGRAM EFFICIENCY,BECAUSE MEMORY IS
PRECIOUS ONE. So to reduce memory use pointers.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is a void pointer used?

905


What does sizeof return c?

815


What is assignment operator?

818


Why n++ execute faster than n+1 ?

2328


What is getch () for?

889


How can I recover the file name given an open stream?

767


What are the different types of pointers used in c language?

796


How do I read the arrow keys? What about function keys?

851


What is the use of #include in c?

815


Why we use int main and void main?

801


Write a program to print all permutations of a given string.

946


What are the similarities between c and c++?

813


What is switch in c?

862


What are the two types of functions in c?

775


what is the role you expect in software industry?

1886