Solveeit Logo

Question

Programming and Data Structure Question on Array

A normal linear queue, if implemented using an array/list of size LIMIT, gets full when :

A

front =rear + 1

B

rear = front

C

front (rear + 1)% LIMIT

D

rear = LIMIT-1

Answer

rear = LIMIT-1

Explanation

Solution

The correct option is(D):rear = LIMIT-1