Vidyalelo
Data Structure · Q186

Introduction to Data Structures

Programming · Data Structure · question 186

Q186

In a circular queue, how do you increment the rear end of the queue?

A.
rear++
B.
(rear+1) % CAPACITY
Answer
C.
(rear % CAPACITY)+1
D.
rear-

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board