ProAnswers.org

How to calculate front of the queue ?

The front of the queue is calculated by front = (front+1) % size.