【发布时间】:2010-11-17 06:47:03
【问题描述】:
这是 C 编程语言中链表的代码。
#include <stdio.h> /* For printf */
#include <stdlib.h> /* For malloc */
typedef struct node {
int data;
struct node *next; /* Pointer to next element in list */
} LLIST;
LLIST *list_add(LLIST **p, int i);
void list_remove(LLIST **p);
LLIST **list_search(LLIST **n, int i);
void list_print(LLIST *n);
代码未完成,但我认为对于我的问题来说已经足够了。这里在结构节点的末尾使用“LLIST”,它也用作函数list_add 原型设计中的返回类型。怎么回事?
【问题讨论】: