多做题,通过考试没问题!

02331数据结构

睦霖题库>高等教育工学类自考>02331数据结构

设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为()。

  • A、front=front+1
  • B、front=(front+1)%(m-1)
  • C、front=(front-1)%m
  • D、front=(front+1)%m
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题