Which one of the following is the correct way to increment the rear end in a…

Which one of the following is the correct way to increment the rear end in a circular queue?

  1. A.

    rear =rear+1

  2. B.

    (rear+1) % max

  3. C.

    (rear % max) + 1

  4. D.

    None of the above

Attempted by 114 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…