Monday 29 August 2011

Deletion of the first node

Deletion of the first node

1. Declare the necessary variables
2. If list = NULL
       print  "Empty list"
    Else
       p = list
       list = p -> next
3. Remove the node p i.e. delete(p)
4. For next deletion, goto step 2

No comments:

Post a Comment