设带有头结点的单向循环链表的头指针变量为head,则其判空条件是()。
A.head==0
B.head->next==head
C.head->next==0
D.head!=0
A.head==0
B.head->next==head
C.head->next==0
D.head!=0
第3题
A.*p的直接后继是头结点
B.p指向尾结点
C.p指向头结点
D.*P的直接后继是尾结点
第4题
A.p->next->next==head
B.p->next==head
C.p->next==NULL
D.p==head
第5题
A.错误
B.正确
第6题
A.队头、队尾指针都要修改
B.队头、队尾指针都可能要修改
C.仅修改队尾指针
D.仅修改队头指针
第7题
A.q=p->next;p->data=q->data;p->next=q->next;free(q);
B. q=p->next;q->data=p->data;p->next=q->next;free(q);
C. q=p->next;p->next=q->next;free(q);
D. q=p->next;p->data=q->data;free(q)
第8题
A.p->right=s; s->left=p; p->right->left=s; s->right=p->right;
B.s->left=p;s->right=p->right;p->right=s; p->right->left=s;
C.p->right=s; p->right->left=s; s->left=p; s->right=p->right;
D.s->left=p;s->right=p->right;p->right->left=s; p->right=s
第9题
:Afront=front+1
Bfront=(front+1)% m
Crear=(rear+1)%m
Dfront=(front+1)%(m+1)