题目内容

判定一个队列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

被限定为只能在表的一端进行插入操作,在表的另一端进行删除操作的是。

队列的插入操作、删除操作分别是在队列的、。

队列只能采用链式存储结构。

A. 对
B. 错

答案查题题库