[单选题]

设数组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

参考答案与解析:

相关试题

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

[单选题]设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为 (41) 。(41) A.front=front+1B.front=(front+1)%(m-1)C.front=(front-1)%mD.front=(front+1)%m

  • 查看答案
  • 设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为

    [单选题]设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为(41)。A.front=front+1B.front=(front+1)%(m-1)C.front=(front-1)%mD.front=(front+1),%m

  • 查看答案
  • 设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为

    [单选题]设数组data[m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作后其头指针front值为( )。A.front=front+1B.front=(front+1)%(m-1)C.front=(front-1)%mD.front=(front+1)%m

  • 查看答案
  • 设数组data[0…m)作为循环队列sq的存储空间,front为队头指针,rea

    [单选题]设数组data[0…m)作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为A.sq↑.front:=sq↑.front+1;B.sq↑.front:=(sq↑.front+1)%maxsize;C.sq↑.rear:=(sq↑.rear+1)%maxsize;D.sq↑.front:=(sq↑.front+1)%(maxsize+1);

  • 查看答案
  • 设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rea

    [单选题]设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为A.sq↑.front:=sq↑.front+1;B.sq↑.front:=(sq↑.front+1)%maxsize ;C.sq↑.rear:=(sq↑.rear+1)%maxsize ;D.sq↑.front:=(sq↑.front+1)%(maxsize+1);

  • 查看答案
  • 设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rea

    [单选题]设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为A.sq↑.front:=sq↑.front+1;B.sq↑.front:=(sq↑.front+1)%maxsize;C.sq↑.rear:=(sq↑.rear+1)%maxsize;D.sq↑.front:=(sq↑.front+1)%(maxsize+1);

  • 查看答案
  • 设数组data[0…m]作为循环队列SQ的存储空间,front为队头指针,rea

    [单选题]设数组data[0…m]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为______。A.front:=front+1B.front:=(front+1)mod mC.rear:=(rear+1)mod mD.front:=(front+1)mod(m+1)

  • 查看答案
  • 设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rea

    [单选题]设数组data[0…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为A.sq↑.front:=sq↑.front+1;B.Sq↑.front:=(Sq↑.front+1)%maxsize;C.sq↑.rear:=(sq↑.rear+1)%maxsize;D.sq↑.front:=(sq↑.front+1)%(maxsize+1) ;

  • 查看答案
  • 设数组data[O…m]作为循环队列sq的存储空间,front为队头指针,rea

    [单选题]设数组data[O…m]作为循环队列sq的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为A.sq↑.front:=sq↑.front+1;B.sq↑.front:=(sq↑.front+1)%maxsize;C.sq↑.rear:=(sq↑.rear+1)%maxsize;D.sq↑.front:=(sq↑.front+1)%(maxsize+1);

  • 查看答案
  • C语言数组Data[m£«1]作为循环队列SQ的存储空间,front为队头指针,

    [单选题]C.语言数组Data[m+1]作为循环队列SQ的存储空间,front为队头指针,rear为队尾指针,则执行出队操作的语句为( )A.front=front+1B.front=(front+1)%mC.rear=(rear+1)%mD.front=(front+1)%(m+1)

  • 查看答案
  • 设数组data[m]作为循环队列sq的存储空间,front为队头指针,rear为