• 2022-06-16
    设单循环链表中结点的结构为(data, next),且rear是指向非空的带表头结点的单循环链表的尾结点的指针。若想删除链表第一个结点,则应执行下列哪一个操作?
    A: rear = rear->next;free(rear);
    B: s=rear->next->next; rear->next->next=s->next;
    C: rear = rear->next->next; free(rear);
    D: s = rear->next->next;rear->next = s->next;free(s);
  • 举一反三