Hi guys or gals ,
i'm in trouble with my class teacher, with in two days i have to finish my lab work .... i'm in need of c program using linked list
my concept is
1. creating a linked list
2.Inserting a number in front of it
3.Insert a nubmber last of it.
4.Searching a number in the created list
5.Deleting a number from the list
6.Deleting the first number
7.Deleting Last Number
I tried little bit
please help me with the same datamembers ..
#include<stdio.h>
#include<conio.h>
#include<alloc.h>
struct list
{
int data;
struct list *next;
}*head,*temp,*node;
typedef struct list sl;
void main()
{
node=(sl*)malloc(sizeof(sl));
printf("Enter the numbers");
scanf("%d",&node->data);
if(head==Null)
{
head=node;
below that i dont know how to do please help me