Tuesday, February 4, 2020

8. Delete Last Node

 /*****
deletelastnode()
*****/
deletelastnode()
{
 struct node *temp=head;
 while(temp->link->link!=NULL)
 {
   temp=temp->link; 
 }
 temp->link->link=NULL;
 free(temp->link);
 temp->link=NULL;
}

No comments:

Post a Comment

9_Regular Expressions

Regular expressions- Sometimes in HTML, the developer defines more than one class name ( that’s class input has more than one name Here ...