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

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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!