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

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by amitshree
0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.