In a circular queue, how do you increment the rear end of the queue?
Posted: Wed Jul 13, 2022 7:41 pm
a) rear++
b) (rear+1) % CAPACITY
c) (rear % CAPACITY)+1
d) rear–
b) (rear+1) % CAPACITY
c) (rear % CAPACITY)+1
d) rear–
Accurate answers. Every time.
https://answerhappy.com/