|
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.
|