🎴 Flashcard Mode
Data Structure Quiz 9
Card1 / 19
Mastered0
Review0
QuestionClick to flip
When linear queue of size MAXQUEUE were implemented in C, underflow occurs at
AnswerClick to flip back
A
Rear - Front + 1 = 0
💡 Explanation:
In a linear queue implemented with an array, the condition Rear - Front + 1 = 0 (or simply Rear < Front) indicates that the queue is empty, meaning an underflow occurs if a dequeue operation is attempted.