下面代码可以安全地删除单链表的头结点,并使 head 指向删除后的新头结点。
Node *p = head;
delete p;
head = p->next;
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析