(struct node *)malloc(sizeof(struct node))/assigning the data temp -data data/adjusting the links temp -next last -nextlast -next templast tempreturn lastinsertion in between the nodes to insert node at the end of the listfollow these step create nodesay search the node after which need to be insertsay that node be make -next -next -next suppose need to be insert after node having value after searching and insertion