What does *array[] mean?

后端 未结 2 1465
不知归路
不知归路 2021-01-29 16:17

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 be

2条回答
  •  孤城傲影
    2021-01-29 16:51

    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.

提交回复
热议问题