What does *array[] mean?

后端 未结 2 1463
不知归路
不知归路 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:47

    an array of 9 pointers to int type

    The asterisk means pointer. You can read the Backus-Naur form for C language to see the definitions of types.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题