单项选择题

循环队列的最大容量为M,则队满的条件是()。

A、rear==front
B、rear+1%M==front
C、rear+1==front
D、rear-1%M==front
微信扫码免费搜题