單項選擇題

在一個鏈隊列中,若f,r分別為隊首、隊尾指針,則插入p所指結點的操作為()。

A.p->next=f;f=p
B.p->next=r;r=p
C.r->next=p;r=p
D.f->next=r;f=p

微信掃碼免費搜題