單項(xiàng)選擇題

若有以下定義

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

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

微信掃碼免費(fèi)搜題