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


Please Help Members By Posting Answers For Below Questions

hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2177


Explain how do you view the path?

889


What is the use of extern in c?

858


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

962


What is sizeof int?

854


What is the meaning of typedef struct in c?

829


What is static identifier?

933


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1507


When should a type cast be used?

784


What are the two types of structure?

841


What is the advantage of c?

826


Why is extern used in c?

849


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2869


What do you mean by a sequential access file?

835


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1832