假定循环队列的队首和队尾指针分别为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
假定循环队列的队首和队尾指针分别为front和rear,则判断队满的条件为()。
A.front= =rear
B.front = = 0
C.front+1 = = rear
D.(rear+1) mod MAXSIZE = = front
正确答案:(rear+1) mod MAXSIZE = = front
相关答案
热门答案