// editor1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct Node{
    int n;
    char *name[100];
    struct Node*next;
}Node;
Node*createNode(char *name)
{
    Node*newNode=(Node*)malloc(sizeof(Node));
    newNode->name=name;
    newNode->next=NULL;
    return newNode;
}
void printlist(Node*Node)
{
    while(Node)
    {
    printf("%s ",Node->name);
    Node=Node->next;
    }
}
int main()
{
    Node*Node1=createNode("Meher");
    Node*Node2=createNode("Govindh");
    Node*Node3=createNode("Pavni");
    Node1->next=Node2;
    Node2->next=Node3;
    printlist(Node1);
    free(Node1);
    free(Node2);
    free(Node3);
    return 0;
}