Files
shifalearn/main.c
T

29 lines
437 B
C

#include <stdio.h>
#include "linkedlist.h"
int main()
{
insert(10);
insert(20);
insert(30);
printf("Linked List: ");
display();
Node *result = search(20);
if (result != NULL)
{
printf("\n the Element found: %d\n", result->data);
}
else
{
printf("\nElement not found\n");
}
printf("Total nodes = %d\n", count());
printf("Count operation completes.\n");
return 0;
}