Difference between two declarations involving a pointer and an array

后端 未结 6 1235
臣服心动
臣服心动 2020-12-18 11:45

What is the difference between int *a[3] and int (*a)[3]?

6条回答
  •  -上瘾入骨i
    2020-12-18 12:01

    int *a[3] : a is a array of 3 pointers to integer type

    int (*a)[3] : a is a pointer to an array of 3 integer type

提交回复
热议问题