單項選擇題

己知指針p指向單鏈表中的某結點,則下列各組語句能刪除鏈表中結點的是()

A.p=p->next
B.q=p->next;q=q->next
C.p->next = p->next->next
D.q=p->next;p=p->next;q=p->next

微信掃碼免費搜題