以下声明是有效的。
然而,当我们定义以下内容时,会出现错误。
为什么会这样呢?
struct node
{
int a;
struct node *next;
};
然而,当我们定义以下内容时,会出现错误。
"error: field ‘next’ has incomplete type"
为什么会这样呢?
struct node
{
int a;
struct node next; /* Not a pointer */
};