题目内容:
以数组Data[m+1]作为循环队列SQ的存储空间,front为头指针,rear为队尾指针,则执行出队操作的语句是()。
A.front=front+1
B.front=(front+1)%m
C.front=(front+1)%(m+1)
D.rear=(rear+1)%m
参考答案:
答案解析:
以数组Data[m+1]作为循环队列SQ的存储空间,front为头指针,rear为队尾指针,则执行出队操作的语句是()。
A.front=front+1
B.front=(front+1)%m
C.front=(front+1)%(m+1)
D.rear=(rear+1)%m