0x499602D2 0x499602D2 - 1 year ago 100
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];

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download