27 lines
289 B
C
27 lines
289 B
C
#include<stdio.h>
|
|
#include "linkedlist.h"
|
|
|
|
|
|
int main()
|
|
{
|
|
|
|
insert(10);
|
|
insert(20);
|
|
insert(30);
|
|
|
|
display();
|
|
|
|
int result = search(20);
|
|
|
|
if(result)
|
|
{
|
|
printf("\nElement found");
|
|
}
|
|
else
|
|
{
|
|
printf("\nElement not found");
|
|
}
|
|
|
|
return 0;
|
|
}
|