what is queue full condition?
Answers
Answered by
2
Answer:
Suppose we start filling the queue. ... When Queue Full : ( REAR+1)%n = (4+1)%5 = 0 FRONT is also 0. Hence ( REAR + 1 ) %n is equal to FRONT. When Queue Empty : REAR was equal to FRONT when empty ( because in the starting before filling the queue FRONT = REAR = 0 ) Hence Option A is correct.
Explanation:
Mark as brainest
Similar questions