Open
Description
While we are dequeuing items from the queue, if we reach the last item both front
and rear
pointing to the last item, and the front
will have the value of NULL
the we delete the address of rear using the temp
pointer, so the rear
will be pointing to nothing so it must be marked as NULL
to indicate we reach the end of the queue.
this is the code snippet I'm talking about:
Datastructure_implementation/Linked Queue/LinkedQueue.h
Lines 94 to 110 in 6065aef