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