欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > 计算机考试试题及答案解析

单项选择题

p指向线性链表中某一结点,则在线性链表的表尾插入结点s的语句序列是()。

    A.while(p->next!=NULL)p=p->next;p->next=s;s->next=NULL;
    B.while(p!=NULL)p=p->next;p->next=s;s->next=NULL;
    C.while(p->next!=NULL)p=p->next;s->next=p;p->next=NULL;
    D.while(p!=NULL)p=p->next->next;p->next=s;s->next=p->next;
点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题