#include<stdio.h> #include<conio.h> #include<process.h> void create(); void display(); void addbeg(); void addlast(); struct node { int info; struct node *link; }*start=NULL; void main() { int n; clrscr(); while(1) { printf("\n **menu**\n"); printf("\n 1. to create list \n 2. to display list"); printf("\n 3. to add node at beginning of linked list"); printf("\n 4. to add node at the last of linked list"); printf("\n 5. exit"); printf("\n Enter your choice:-"); scanf("%d",&n); switch(n) { case 1 : create(); break; case 2 : display(); break; case 3 : addbeg(); break; case 4 : addlast(); break; case 5 : exit(0); } } getch(); } void create() { struct node *temp,*q; int x; ...
Always with you to fascinate and feisty you.I'm blessed and I thank God for every day for everything that happens for me.