If circular queue is implemented using array having size MAX_SIZE in which…
BPSC TRE · TRE 1.0 · PGT (Classes 11–12) · Computer Science · 26 Aug 2023 · Shift 2 · Subject
If circular queue is implemented using array having size MAX_SIZE in which array index starts with 0, front points to the first element in the queue, and rear points to the last element in the queue. Which one of the following conditions is used to specify that the circular queue is empty?
- A.
Front = rear = –1
- B.
Front = rear = 0
- C.
Front = rear + 1
- D.
More than one of the above
- E.
None of the above
Attempted by 1282 students.
Sign up free to check your answer
Sign up freeLoading lesson…