【发布时间】:2013-12-17 13:42:09
【问题描述】:
有点菜鸟,所以不要在这里杀了我。
以下代码有什么区别?
int *p; //As i understand, it creates a pointer to an variable of size int.
int *p[100]; //Don't really know what this is.
int (*p)[100]; // I have come to understand that this is a pointer to an array.
【问题讨论】:
-
您是在问 C,还是想知道 C++ 的答案?
-
@Sven Marnach,char *(*(**foo[][8])())[]?我们需要更深入
-
@benjymous,我想听听一些关于 C++ 中指针的有趣内容
-
请不要对这个问题投反对票 虽然这个问题已经回答了好几次,但在这里我们遇到了一些很好的答案。