Professional Documents
Culture Documents
Lab Report On A Program That Will Take A Defined Singly Link List and Insert A New Value in The List
Lab Report On A Program That Will Take A Defined Singly Link List and Insert A New Value in The List
On
A program that will take a defined singly link list
and insert a new value in the list
COURSE CODE: CSE 232
Course Title: Data Structures Lab
Experiment No - 03
#include<stdio.h>
#include<stdlib.h>
int main()
{
node* first = (node*)malloc(sizeof(node));
first->next = NULL;
insert(first, 1);
insert(first, 2);
insert(first, 3);
insert(first, 4);
insert(first, 5);
display(first);
printf("after inserting a value: \n");
insertAtMid(first,7);
display(first);