#include "stdlib.h"#include "stdio.h"struct list{ int data;struct list *next;};typedef struct list node;typedef node *link;link delete_node(link pointer,link tmp){if (tmp==NULL) /*delete first node*/ return pointer->next;else{ if(tmp->next->next==NULL)/*delete last node*/ tmp->next=NULL; else /*