Question discussion

If the MAX_SIZE is the size of the array used in the implementation of circular queue, assume array index start with O, front points toward…

356032Medium 1 reply 3,881 views
-4
If the MAX_SIZE is the size of the array used in the implementation of circular queue, assume array index start with O, front points towards the first element in the queue, and rear points towards the last element in the queue. Which of the following condition specify that circular queue is Full ?
  • AFront = rear = - 1  
  • B Front = (rear + 1)%MAX_SIZE   
  • C Rear = front + 1  
  • D Rear = (front + 1)%MAX_SIZE
Answer not set

Discussion 1

0
CCommunity
Front = (rear + 1)%MAX_SIZE