相关疑难解决方法(0)

如何破译C中的复杂指针声明?

所以我想举个例子:

int *pi; // pi is a pointer that points to an integer
const int *cpi; // cpi is a pointer that points to a constant integer
char *pc; // pc is a pointer to a char 
Run Code Online (Sandbox Code Playgroud)

我怎么读这些:

char **x; //x is a pointer to a char pointer?
char *y[];
char **z[];
Run Code Online (Sandbox Code Playgroud)

谢谢.

c pointers declaration

7
推荐指数
2
解决办法
2161
查看次数

标签 统计

c ×1

declaration ×1

pointers ×1