• 2022-06-09
    若已建立下面的链表结构,指针p、q分别指向图中所示结点,则不能将q所指的结点插入到链表末尾的一组语句是[img=255x202]1802d1c62c00209.jpg[/img]
    A: p = p->next; q->next = p; p->next = q;
    B: q->next = NULL; p = p->next; p->next = q;
    C: p = p->next; q->next = p->next; p->next = q;
    D: p = (*p).next; (*q).next = (*p).next; (*p).next = q;
  • 举一反三