Equivalent C declarations

前端 未结 5 1492
南笙
南笙 2021-02-04 20:18

Are

int (*x)[10];

and

int x[10];

equivalent?

According to the \"Clockwise Spiral\" rule, they parse

5条回答
  •  广开言路
    2021-02-04 21:10

    No. First one declares an array of 10 int pointers and second one declares an array of 10 ints.

提交回复
热议问题