#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.

Recommended Answers

All 2 Replies

Based on what you posted you have just made your prototypes but you have not actually defined any of the functions.

but inside switch case i have defined my funtion.i am beginner so give me a detail plz.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.