单项选择题

假定一个循环顺序队列的队首和队尾指针分别为front和rear,存储空间的长度为N,则队长为______。

A.rear-front
B.rear-front+1
C.(rear-front+N)mod N
D.(rear-front+N+1)mod N