單項選擇題已知一個帶頭結點單鏈表L,在表頭元素前插入新結點 *s的語句為:()

A. L=s;s->next=L;
B. s->next=L->next;L->next=s;
C. s=L;s->next=L;
D. s->next=L; s=L;


您可能感興趣的試卷