【发布时间】:2020-09-19 05:29:51
【问题描述】:
我正在关注链接列表的 C 教程,并且正在构建节点。但是,我不明白为什么 * 运算符出现在节点变量的末尾而不是它的前面。我认为指针出现在这个词的前面。那么哪个是指针? “下一个”还是“节点”?
struct node {
int value;
// next pointer, should point to the next node in the list
struct node* next; // pointer of structure type
};
谢谢。
【问题讨论】: