设数组Data[n]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。

3 查阅

设数组Data[n]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为()。

A.SQ.front=SQ.front+1

B.SQ.reart=SQ.rear+1

C.SQ.front=(SQ.front+1)%n

D.SQ.reart=(SQ.rear+1)%n

参考答案:

答案:D