Difference between array and pointer?


1- Array allocates space automatically

2- It cannot be resized

3- It cannot be reassigned

4- sizeof (arrayname) gives the number of bytes occupied by the array.


1-Explicitly assigned to point to an allocated space.

2-It can be sized using realloc()

3-pointer can be reassigned.

4-sizeof ยง returns the number of bytes used to store the pointer variable p.