Single Link List insert Code in C Programming Turbo C
#include<conio.h>
void main()
{
int
insertlast(node*);
node*head;
head=(node*)malloc(sizeof(node));
creat(head);
display(head);
head=insertlast(head);
display(haed);
geatch();
}
insertlast(node*
list)
{
node*new1;
new1=(node*)malloc(sizeof(node));
while(list->next
!=NULL)
{
list=list->next;
}
list
next=new1;
new1->next=NULL;
list->no=100;
return
list;
}
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment