Question: correct the code if any problem is noticed In the circular queue, front and rear has been initialized with -1. Insert function of the queue
In the circular queue, front and rear has been initialized with -1. Insert function of the
queue has been given as:
void insert (int x)
{
if (rear+1==size)
cout<
rear+1=x;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
