Q. In a circular queue, how do you increment the rear end of the queue? (Solved)

1. rear++

2. (rear+1) % CAPACITY

3. (rear % CAPACITY)+1

4. rear–

  • b. (rear+1) % CAPACITY
Subscribe Now

Get All Updates & News