printf("\ the value stored at top of stack is% "val)breakcase display(st)break}while(option ! )return void push(int st[]int valif(top =max- printf("\ stack overflow")else top++st[topvalint pop(int st[]int valif(top =- printf("\ stack underflow")return - else val st[top]top--return valvoid display(int st[]int iif(top =- printf("\ stack is empty")else for( =top; >= ; --printf("\ % ",st[ ])printf("\ ")/added for formatting purposes int peek(int st[]if(top =- printf("\ stack is empty")return - else return (st[top])