Question: what is the difference between array name and pointer variable?
Answer: There is a basic difference between an array and pointer is that an array is a collection of variables of a similar data type. In contrast, the pointer is a variable which is used for storing the address of another variable. ... On the contrary, the pointers can be used for allocating the memory dynamically.