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

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 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.

    None of the above

Attempted by 595 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…