0x499602D2 0x499602D2 - 1 month ago 5
C++ Question

What does *array[] mean?

What does this mean? I see it all the time in programs and I don't get it:

int *array[9];


Why is the asterisk there. What is the difference between this declaration and this:

int array[9];

RC. RC.
Answer

It's an array of pointers to an integer. (array size is 9 elements. Indexes: 0 - 8)

This can also be stated as being an array of integer pointers.

int array[9] , is an array of integers.