当 (116) 时,“链式队列为空”(front为头指针,rear为尾指针)。
A:rear==NULL B:front== NULL C:front= =rear D:front!=rear
判断“链式队列为空”的条件是______(front为头指针,rear为尾指针)。
A:front==NULL B:rear==NULL C:front==rear D:front!=rear
设数组data[m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。
A:front=-front+1 B:front=-(front+1)%(m-1) C:front=-(front-1)%m D:front=-(front+1)%m
假定一个链队列的队首和队尾指针分别为front和rear,则判断队空的条件为( )。
A:front==rear B:front!=NULL C:rear!=NULL D:front==NULL
假定一个链队的队首和队尾指针分别为front和rear,则判断队空的条件为______。
A:front=rear B:front!=NULL C:rear!=NULL D:front=NULL
假定一个链队的队首和队尾指针分别为front和rear,则判断队空的条件为______。
A:front=rear B:front!=NULL C:rear!=NULL D:front=NULL
设数组data[m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。
A:front=-front+1 B:front=-(front+1)%(m-1) C:front=-(front-1)%m D:front=-(front+1)%m