假定循環隊列的隊首和隊尾指針分別為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