The front index pointer is initialised to 0 and the rear index pointer is initialised to −1. The rear index pointer will be incremented every time you add an item to the queue, so this initial value will ensure that the first item is added into the first position of the array (position 0). Thus, once the first item has been added, both front and rear will correctly point to this element in the array.