#include<stdio.h> #include<iostream.h> #include<stdlib.h> struct node{ int data; struct node *next; }; void main() { struct node *head=NULL,*ptr=NULL,*temp=NULL,*top,*ptr2,*ptr3,*ptr4=NULL; int choice; clrscr(); while(1) { printf("--------------------program of stack using link list-------------\n"); printf("press 1 for insertion\npress 2 for deletion\npress 3 for view the stack\npress 4 for source code\n"); scanf("%d",&choice); switch(choice) { case 1: temp=(struct node *)malloc(sizeof(struct node)); temp->next=NULL; printf("\nenter the data in temp variable"); scanf("%d",&temp->data); if(temp==NULL) { printf("stack is overflow\n");