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

Which header file is used for clrscr?

583


Write a C program to count the number of email on text

1421


Explain what is #line used for?

609


What does & mean in scanf?

605


Write a program to reverse a linked list in c.

648






Why is c called a structured programming language?

681


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

666


Why is c fast?

609


what is the significance of static storage class specifier?

1666


What is mean by data types in c?

554


What is the difference between malloc calloc and realloc in c?

650


What do you mean by command line argument?

647


How can I read data from data files with particular formats?

606


What is double pointer in c?

591


Explain the use of keyword 'register' with respect to variables.

591