Posts

Showing posts with the label Write a Program that uses functions to' perform insertion and deletion operation on a singly linked list.

Write a Program that uses functions to' perform insertion operation on a singly linked list. Write a Program that uses functions to perform deletion operation on a singly linked list

/* Write a Program that uses functions to' perform insertion operation on a singly linked   list.  & Write a Program that uses functions to perform deletion operation on a singly linked list*/    #include<stdlib.h> #include <stdio.h> void display(); void insert_begin(); void delete_begin(); struct node {         int info;         struct node *next; }; struct node *start=NULL; int main() {         int choice;         while(1){                 printf("\n                MENU       \n");                 printf("\n 1.Display    \n");                 printf("\n 2.Insert at the beginning    \n");                 printf("\n 3.Delete from beginning      \n");                 printf("\n 4.Exit       \n");                 printf("\n------------------------------------\n");                 printf("\nEnter your choice: \n");                 scanf("%d",&choice);                 switch(choice)