• 2022-06-16
    1、已知带头结点的链栈top, 则该链栈不空时, 出栈操作的语句是( )
    A: top->next=top->next->next; *x=top->next->data;
    B: top->next=top->next->next; *x=top->next->data;
    C: *x=top ->data;p=top;top =p->next;free(p);
    D: *x=top ->data;p=top;top =p->next;free(p);