Step 1: if REAR >= N -1 thenPrint “Queue is overflow”ExitEnd of ifStep 2: REAR = REAR+ 1Step 3: QUEUE [REAR] = elementStep 4: if FRONT =-1 thenFRONT = 0.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy