Q. What are some of the difference between pointers and arrays?

Love and Share

Answers : Arrays is a collection of similar datatype. Array use subscripted variables to access and manipulate data. Array variables can be Equivalently written using pointer expression. Where as, Pointers are used to manipulate data using the address. Pointers use operator to access the data pointed to by them.

 In General, Array can allocate variables but cannot reallocate those variable if required.  Whereas the pointer was assigned to allocate variables and they can also relocate and also are resizable.

Love and Share

Leave a Reply

Your email address will not be published. Required fields are marked *