Since, No deletion is performed in the queue till now, therefore the value of front remains -1. The above figure shows the queue of characters forming the English word 'HELLO'. Array representation of a queue containing 5 elements along with the respective values of front and rear, is shown in the following figure. Initially, the value of front and queue is -1 which represents an empty queue.
Front and rear variables point to the position from where insertions and deletions are performed in a queue. front and rear, that are implemented in the case of every queue. We can easily represent queue by using linear arrays. Next → ← prev Array representation of Queue