• 2022-06-16
    已知带头结点的链栈top, 则该链栈为空的条件是( )
    A: top==NULL
    B: top->next= =NULL
    C: top->next->next= =NULL
    D: top->next= =top
  • B

    内容

    • 0

      25.向一个栈顶指针为top的链栈中插入一个结点,则执行( )。 A: s->next=top;top=s B: s->next=top->next; top->next =s C: top->next =s D: s->next=top; top=top->next

    • 1

      已知带头结点的链栈top,则该链栈为空的条件是() A: top->next==NULL B: top==NULL C: top->next->next==NULL D: top->next==top

    • 2

      ​已知带头结点的链栈top, 则该链栈为空的条件是( )‎​‎​‎​‎​‎​‎ A: top==NULL B: top->next= =NULL C: top->next->next= =NULL D: top->next= =top

    • 3

      ‌已知带头结点的链栈top, 则该链栈为空的条件是( )​‌​‌​‌​‌​‌​ A: top==NULL B: top->next= =NULL C: top->next->next= =NULL D: top->next= =top

    • 4

      设带有头结点链栈,其栈项指针为top,向链栈中插入一个s结点时,则执行() A: s->next=top->next; top->next=s B: s->next=top->next; top=s C: s->next=top; top->next=s D: top->next=s; s->next=top->next