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

Does c have an equivalent to pascals with statement?

763


What is an example of structure?

802


What is calloc malloc realloc in c?

811


When can you use a pointer with a function?

748


Why is c called "mother" language?

1056


What is file in c language?

778


What are the different types of data structures in c?

856


How do I use strcmp?

837


Can we declare function inside main?

759


Explain what is meant by 'bit masking'?

877


What is storage class?

850


Explain what is a pragma?

794


cavium networks written test pattern ..

3816


What is the use of bit field?

885


What are the 5 data types?

781