在一个链队中,假设f和r分别为队头和队尾指针,则插入s所指结点的操作应执行()。
A.f->next=s;r=s;
B.r->next=s;r=s;
C.s->next=r;r=s;
D.s->next=f;f=s;
正确答案:r->next=s;r=s;
猜你喜欢