若有定义
struct node{
int date;
struct node *next;
}
函数:
void fun(struct node *head)
{
struct node *p=head;
while(p)
struct node *q=p->next;
free(p);
p=q;
则该函数的功能是( )
A. 删除整个单向链表 B. 删除单向链表中的一个结点
C.显示单向链表中的所有数据 D. 创建单向链表
A
用户登录可进行刷题及查看答案
登录后提交答案
暂无评论,来抢沙发