In a circular queue of size n, the queue is full when:
Show answerHide answer
Correct answer: (A) (rear + 1) % n == front
Explanation
One slot is kept empty to distinguish full from empty.
Correct answer: (A) (rear + 1) % n == front
Explanation
One slot is kept empty to distinguish full from empty.
This is question 148 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.