#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
struct node
{
char name[2];
int size;
struct node *link;
};
typedef struct node nod;
nod *head,*ref;
void main()
{
int n,i=0;
head=(nod *)malloc(sizeof(nod));
strcpy(head->name,"NULL");
head->size=30;
head->link=NULL;
ref=head;
printf("enter the no of nodes: \n");
scanf("%d",&n);
do
{
head->link=(nod *)malloc(sizeof(nod));
strcpy(head->name,"F");
printf("plz enter the size of node\n");
scanf("%d",&head->size);
head=head->link;