If circular queue is implemented using array having size MAX_SIZE in which…

BPSC TRE 2023

If circular queue is implemented using array having size MAX_SIZE in which array index starts with 0, front points to the first element in the queue, and rear points to the last element in the queue. Which one of the following conditions is used to specify that the circular queue is empty?

  1. A.

    Front = rear = –1

  2. B.

    Front = rear = 0

  3. C.

    Front = rear + 1

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 1863 students.

Sign up free to check your answer

Sign up free

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…