單項選擇題

若有以下定義

則能保留鏈表其它結(jié)點,而刪除p所指向結(jié)點的程序段是()

A.head->next=p->next;free(p)
B.head->next=p;p->next=head->next;free(p)
C.free(p);head->next=p;p->next=head->next
D.free(p);head->next=p->next

微信掃碼免費搜題