]Code:#include<stdio.h> #include<stdlib.h> struct node{ int data; struct node *next; }; int main() { struct node *start,*ptr; int n,i,data; printf("Enter the number of elements in the linked list: "); scanf("%d",&n); ptr=start; ptr= (struct node *)malloc(sizeof(struct node)); printf("Enter the element 1: "); scanf("%d",&ptr->data); ptr=ptr->next; for(i=2;i<=n;i++) { printf("Enter the element %d: ",i); ptr= (struct node *)malloc(sizeof(struct node)); scanf("%d",&ptr->data); ptr=ptr->next; } ptr->next=NULL; ptr=start; while(ptr!=NULL) { printf("%d->",ptr->data); printf("NULL"); }