Question: Correct the code, if any problems noticed 1. In the given queue, front and rear has been initialized with 0. Insert func ion of the
Correct the code, if any problems noticed
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
Get step-by-step solutions from verified subject matter experts
