void printlink(struct Test *head)//链表动态遍历
{
struct Test *point;
point = head;//point指向head保存的地址也就是t1的地址
while (point != NULL){
printf("%d ",point ->data); //访问point指向地址里的data的值 (指针访问结构体用->)
point = point ->next;//访问point当前指向的地址的下一个地址,并让point指向该地址 (也就是指向链表下一个节点)
}
putchar('\n');
}
demo9.4链表遍历中的point=point-next.c
C语言与链表数据结构
最新推荐文章于 2025-12-05 10:52:12 发布
2615

被折叠的 条评论
为什么被折叠?



