UNIT 1 Ds
UNIT 1 Ds
#include <stdio.h>
#include <stdlib.h>
struct Node {
INSTERTION –
We will create different insertion functions for:
C IMPLEMENTAION –
ptr = start;
scanf(“%d”,&newnode ->info);
newnodeàprev = NULL;
start = newnode;
b) instertion at end:-
C IMPLEMENTATION
scanf(“%d”,&newnode ->info);
newnodeàprev = NULL;
ptr = start;
int pos i ;
scanf(“%d”,%pos);
temp= start;