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

PYQ eLitmus 2025

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

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…