单项选择题

数组data[m]为循环队列的存储空间,front为队头指针,rare为队尾指针,则执行入队的操作为()

A.rare=rare+1
B.rare=(rare+1)%(m-1)
C.rare=(rare-1)%m
D.rare=(rare+1)%m