【发布时间】:2015-04-12 15:39:11
【问题描述】:
所以我想举个例子:
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
如何阅读这些内容:
char **x; //x is a pointer to a char pointer?
char *y[];
char **z[];
谢谢。
【问题讨论】:
-
@BillLynch 我认为不太正确。这不应该是 char *titles[] 等于 char **titles; ?
-
@BillLynch 然后呢??
-
@BillLynch:取决于放置的位置。在函数的参数列表中,
T * t[]等于T ** t。
标签: c pointers declaration