#include #include #include using namespace std; int main() { int c,arrsize=10,top=-1; char arrstring[arrsize],ch; do { cout<<"\n\n\n enter your choice \n 1.Push \n 2.pop \n 3.Display \n 4.Display top \n 0.exit."; cin>>c; switch(c) { case 1:{ if(isfull(top,arrsize)==1) { cout<<"\n Stack overflow!!!"; } else { char ch; cout<<"\n Enter the element to be pushed to stack:"; cin>>ch; top=push(arrstring,top,ch); } break; } case 2:{ if(isempty(top)==1) { cout<<"\n Stack underflow!!!"; } else { char popped; popped=pop(arrstring,top); cout<<"\n The element popped is:"<0); return 0; }