Q170
If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse inorder to insert an element in the queue?
A.
rear=(rear%1)+MAX_SIZE
B.
rear=(rear+1)%MAX_SIZE
AnswerC.
rear=rear+(1%MAX_SIZE)
D.
rear=rear%(MAX_SIZE+1)
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board