The node containing garbage value appears at the last..
So if your concern is just the last but one node that is if you say that the node whose node->link is your junk node and you don't want to read it then you can just do this :
The node containing garbage value appears at the last..
It would appear at the last, in case the way you append is something that you have written to actually add the node to the beginning rather than the end. Just make sure that is not the case.
SNIP
Last edited by happygeek; Jul 6th, 2009 at 10:18 am. Reason: fake sig snipped, please read the rules regarding signatures
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.