View Single Post
Old Feb 17th, 2008, 11:30 AM   #7
jason999x
Newbie
 
Join Date: Feb 2008
Posts: 6
Rep Power: 0 jason999x is on a distinguished road
Re: linked list problems

yea... rhish is right... the last pointer in your list will definitely point to NULL. On your delete_node code, the case for if it is last node (current !=head && current->next == 0) that last zero should be NULL; 0 could be like the first index (convention of flooring at zero) or could be some node with the value of 0.
jason999x is offline   Reply With Quote