设数组data[m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。A.front=-front+1B.front=-(front+1)%(m-1)C.front=-(front-1)%mD.front=-(front+1)%m

题目

设数组data[m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。

A.front=-front+1

B.front=-(front+1)%(m-1)

C.front=-(front-1)%m

D.front=-(front+1)%m


相似考题