Program to design list in c:
Write a program in c to insert the values in list
void main()
{
int i=0;
char a[20];
clrscr();
printf("Enter the line\n");
while((int)a[i]!=13)
{
scanf("%c",a[i]);printf("%c %d",a[i],i+1);
i++;
}
printf("%s",a);
getch();
}