Stack Menu driven program
/* C Program for stack operations using switch case*/ #include<stdio.h> #include<stdlib.h> #define MAX 10 int stack_arr[MAX]; int top = -1; void push(int item); int pop(); int peek(); int isEmpty(); int isFull(); void display(); int main() { int choice,item; while(1) { printf("\n1.Push\n"); printf("2.Pop\n"); printf("3.Display the top element\n"); printf("4.Display all stack elements\n"); printf("5.Quit\n"); printf("\nEnter your choice : "); scanf("%d",&choice); ...