首页 › 答案 › 题库 › 远程教育 › 国家开放大学

假设用Q[0.maxleng-1]表示循环队列,f为队头指针,r为队尾指针,则进队操作的语句是

假设用Q[0.maxleng-1]表示循环队列,f为队头指针,r为队尾指针,则进队操作的语句是
A.f=f+1
B.r=r+1
C.f=(f+1)%maxleng
D.r=(r+1)%maxleng
正确答案:D