Question

Which of the following statements is true about the implementation of a circular queue?

A A circular queue cannot be implemented using an array.
B The "front" pointer always moves forward by one position after a dequeue operation.
C The condition for an empty circular queue is rear == front.
D The condition for a full circular queue is (rear + 1) % size == front.
E A circular queue does not require a size limit.
Practice Next

Hey! Ask a query