ProAnswers.org

Difference between an array of pointers and a pointer to an array?

Array of pointers

1- Declaration is: data_type *array_name[size];

2-Size represents the row size.

3- The space for columns may be dynamically

Pointers to an array

1-Declaration is data_type ( *array_name)[size];

2-Size represents the column size.