Both a linear queue and a circular queue serve elements in FIFO order (First In, First Out). The difference is in how they use the array that stores the elements, and that difference decides whether the queue can keep running with a fixed amount of memory. This page explains both and lists what the circular version gains.
What is a Queue Data Structure?
A queue is a linear data structure in which elements join at the rear (tail) and leave from the front (head), so they leave in the order they arrived. Nothing can be inserted or removed in the middle.
A linear queue stored in an array moves its front and rear indexes only forward, from index 0 towards the end of the array.

What is Circular Queue in Data Structure?
A circular queue is a FIFO queue whose array positions are treated as a ring: the position after the last index is index 0. Its front and rear indexes advance with the modulo operator and wrap around when they reach the end.
In a linear array queue, once rear reaches the last index, no more elements can be added, even if dequeues have freed slots at the front. A circular queue wraps rear back to index 0 and fills those freed slots, so the whole array stays usable.
A circular queue is also called a ring buffer.
Circular Queue Representation

Advantages of the Circular Queue Over Linear Queue
A circular queue removes the limitations of a linear array queue:
Freed slots are reused: in a linear queue, the slots before
frontare lost for good, so the queue can report "full" while most of the array is empty. A circular queue can keep adding elements until all slots are really in use.O(1) operations without shifting: the only way a linear array queue can reuse space is to shift all remaining elements to the front after a dequeue, which costs O(n). A circular queue gets full use of the array and keeps enqueue and dequeue at O(1).
Fixed, predictable memory: a circular queue can run forever inside one array of known size, which is why ring buffers are used in device drivers, network cards and audio/video streaming.
Same FIFO behaviour: none of this changes the order of service; elements still leave in exactly the order they arrived.
The cost is slightly more involved index handling: wrapping with % and telling a full queue from an empty one (see FAQ Q6 and Q7).