Question: 1. In the given queue, front and rear has been initialized with 0. Insert func ion of the queue has been given as: void insert

1. In the given queue, front and rear has been initialized with 0. Insert func ion of the queue has been given as:

void insert (int x)

{

if (rear+1==size)

cout<

++rear=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!