设数组Data[0..m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为( )。 A、front=front+1 B、front=(front+1)% m C、rear=(rear+1)%m D、front=(front+1)%(m+1)
数组Data[0..m],共有 m+1 个数
B?
快乐小土狗 回复 路远: 注意边界,[0...m]
参考答案D。
本...
登录后提交答案