首页 > 试题广场 >

设数组data[m]作为循环队列SQ的存储空间,front为

[单选题]

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

  • front=front+1
  • front=(front+1)%(m-1)
  • front=(front-1)%m
  • front=(front-1)%m

这道题你会答吗?花几分钟告诉大家答案吧!