Stack operation
#include<stdio.h> #include<process.h> #include<stdlib.h> #define MAX 5 //Maximum number of elements that can be stored int top=-1,stack[MAX]; void push(); void pop(); void display(); void main() { int ch; while(1) //infinite loop, will end when choice will be 4 { printf("\n*** Stack Menu ***"); printf("\n\n1.Push\n2.Pop\n3.Display\n4.Exit"); printf("\n\nEnter your choice(1-4):"); scanf("%d",&ch); switch(ch) { case 1: push(); ...