Suppose a queue is maintained by a circular array QUEUE with N=12 memory cells. Find the number of elements in QUEUE if (a) FRONT=4, REAR =8; (b) FRONT=10, REAR=3; and (c) FRONT= 5, REAR=6 and then two elements are deleted.
Answers
Answered by
3
Answer:
- Refer to the attachment for diagram and calculations .
After deletion of two elements in the queue =0
Attachments:
Similar questions