• 2022-07-25
    若已建立下面的链表结构,指针p、q分别指向图中所示结点,则不能将q所指的结点插入到链表末尾的一组语句是[img=255x202]18036af5e556f2d.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;
  • 举一反三