首页 › 答案 › 题库 › 知到智慧树 › 未分类

假定循环队列的队首和队尾指针分别为front和rear,则判断队满的条件为()。

假定循环队列的队首和队尾指针分别为front和rear,则判断队满的条件为()。
A.front= =rear
B.front = = 0
C.front+1 = = rear
D.(rear+1) mod MAXSIZE = = front
正确答案:(rear+1) mod MAXSIZE = = front