Singly Linked List
Singly Linked List
h>
#include<conio.h>
#include<malloc.h>
int main()
{
struct node *p;
p = NULL;
display(p);
addatbeg(&p,999);
addatbeg(&p,888);
addatbeg(&p,777);
display(p);
addafter(p,7,0);
addafter(p,2,1);
addafter(p,5,99);
display(p);
printf("No. of elements in the Linked List =%d\n",count(p));
del(&p,99);
del(&p,1);
del(&p,10);
display(p);