判定一个队列QU(最多元素为m0)为满队列的条件:
A. QU->rear-QU->front==m0
B. QU->rear-QU->front-1==m0
C. QU->front==QU->rear
D. QU->front==QU->rear+1
查看答案
以下程序段的输出结果是(队列中的元素类型QElem Type为char):void main( ){Queue Q; Init Queue (Q);Char x=’e’; y=’c’;EnQueue (Q,’h’); EnQueue (Q,’r’); EnQueue (Q, y);DeQueue (Q,x); EnQueue (Q,x);DeQueue (Q,x); EnQueue (Q,’a’);while(!QueueEmpty(Q)){ DeQueue (Q,y);printf(y);};Printf(x);}
A. stack
B. char
C. sackt
D. shtck
被限定为只能在表的一端进行插入操作,在表的另一端进行删除操作的是。