That raises a new question then.
Lets say i have a Queue. It consists of two pointers, First, and Last, Who points to a chain of Nodes (Each Node points to the next in the chain). When you add a new node it is added last in the chain, and when you pick one out, you take the first. When you want to clear this Queue, can you just set the first and last pointers to null and the chain in between is lost, or do you have to manually go through the entiry chain of nodes setting all the pointers to null ?
Lets say i have a Queue. It consists of two pointers, First, and Last, Who points to a chain of Nodes (Each Node points to the next in the chain). When you add a new node it is added last in the chain, and when you pick one out, you take the first. When you want to clear this Queue, can you just set the first and last pointers to null and the chain in between is lost, or do you have to manually go through the entiry chain of nodes setting all the pointers to null ?