单选题:在一个单链表中,已知s结点,若在s后插入g结点,则须执行( ).
在一个单链表中,已知s结点,若在s后插入g结点,则须执行( ).
@[A](2)
A. g->next=s->next; s->next=g;
B. s->next=g; g->next=s;
C. s->next=g->next; g->next=s;
D. g->next=s; s->next=g->next
A.g->next=s->next; s->next=g;
B.s->next=g; g->next=s;
C.s->next=g->next; g->next=s;
D.g->next=s; s->next=g->next
答案:A
@[A](2)
A. g->next=s->next; s->next=g;
B. s->next=g; g->next=s;
C. s->next=g->next; g->next=s;
D. g->next=s; s->next=g->next
A.g->next=s->next; s->next=g;
B.s->next=g; g->next=s;
C.s->next=g->next; g->next=s;
D.g->next=s; s->next=g->next
答案:A