notes if(temp -link =nullprintf("error\ ")exit( )temp temp-linktemp-data ntemp-link preturn ( )void printlist struct node * struct node *temptemp pprintf("the data values in the list are\ ")if( !nulldo printf(% \ ",temp->data)temp=temp->linkwhile (temp!pelse printf("the list is empty\ ")void main(int nint xstruct node *start null printf("enter the nodes to be created \ ")scanf("% ",& )while printf"enter the data values to be placed in node\ ")scanf("% ",& )start insert startx )printf("the created list is\ ")printlist start ) lovely professional university