struct node *last (struct node*)malloc(sizeof(struct node))/assigning the data last -data data/note list was empty we link single node /to itself last -next lastreturn lastrun on ide insertion at the beginning of the list to insert node at the beginning of the listfollow these step create nodesay make -next last -next last -next after insertionfunction to insert node in the beginning of the liststruct node *addbegin(struct node *lastint dataif (last =nullreturn addtoempty(lastdata)/creating node dynamically struct node *temp (struct node *)malloc(sizeof(struct node))/assigning the data temp -data data/adjusting the links temp -next last -nextlast -next tempreturn last