循环队列Q[m]存放各队列元素,已知其头尾指针front和rear,则当前队列的元素个数是:
A.(rear-front m)%m
B.rear-front 1
C.rear-front-1
D.rear-front
正确答案:(rear-front m)%m
猜你喜欢