Ordered Singly Linked List program #1

26. Write a menu driven program to implement following operations on the ordered singly linked list. i. Insert a node such that linked list is in ascending order. (According to info. field) ii. Delete a first node of the linked list. iii. Delete a last node of the linked list. iv. Delete a node from specified position. #include<stdio.h> #include<stdlib.h> struct node { int info; struct node * link; }; typedef struct node Node; Node * insert_in_order(int x); Node * delete_from_first(); Node * delete_from_last(); Node * delete_from_specified(int p); void display(); Node * first; int a,count=0; void main() { int x,ch,p; printf ("SINGLY LINKED LIST OPERATIONS\n"); while (1) { printf ("------------------------------------------\n"); ...