Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2012
Questions

Q35

MCQ2 marks, −0.67Data structuresMedium

Suppose a circular queue of capacity (n−1)(n −1) elements is implemented with an array of nn elements. Assume that the insertion and deletion operations are carried out using REAR\textsf{REAR} and FRONT\textsf{FRONT} as array index variables, respectively. Initially, REAR=FRONT=0\textsf{REAR} = \textsf{FRONT} = 0. The conditions to detect queue full and queue empty are:

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.