单项选择题
假定已建立以下链表结构,且指针p和q已指向如图所示的结点: 则以下选项中司将q所指结点从链表中删除并释放该结点的语句组是()。
A. (*p).next=(*q).next; free(p); B. p=q->next; free(q); C. p=q; free(q); D. p->next=q->next; free(q);
A. typedef struct B. struct REC; int n;char c;REC; int n;char c;; REC t1,t2; REC t1,t2; C. typedef struct REC; D. struct int n=0;char c='A';t1,t2; int n;char c;REC; REC t1,t2;
A. p->next=q->next; B. p->next=p->next->next; C. p->next=r; D. p=q->next;