[单选题]

设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为

A.sq↑.front:=sq↑.front+1;

B.Sq↑.front:=(Sq↑.front+1)%maxsize;

C.sq↑.rear:=(sq↑.rear+1)%maxsize;

D.sq↑.front:=(sq↑.front+1)%(maxsize+1) ;

参考答案与解析:

相关试题

设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rea