#include<stdio.h>
#include<conio.h>
struct node{
int data;
struct node *next;
};
struct node *creat_list(struct node *start);
void display(struct node *start);
struct node *addatbeg(struct node *start,int data);
struct node *addatend(struct node *start,int data);
int main(void)
{
struct node *start=NULL;
int choice,data;
while(1)
{
printf("1.creat linklist\n");
printf("2.display\n");
printf("3.add at beg\n");
printf("4.adda t end\n");
scanf("%d",&choice);
switch(choice)
{
case 1:
start=creat_list(start);
break;
case 2:
display(start);
break;
case 3:
printf("enter an element toe inserted");
scanf("%d",&data);
start=addatbeg(start,data);
break;
case 4:
printf("enter the element to be inserted");
scanf("%d",&data);
start=addatend(start,data);
break;
default:
printf("wrong choice");
}
}
}
i got the titled error.i am tring to run this program in quincy 2005.