randomposts
Powered by Blogger.

Single Link List insert Code in C Programming Turbo C

No comments




/*Single Link List insert Code in C Programming Turbo C */


#include<stdio.h>
#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;
          }



Thanks & Regards
Yagnik Gorasiya

No comments :

Post a Comment