topb - stack[topbvalint popb(int valif(topb==maxprintf("\ underflow")val - else val stack[topb]topb++void display_stackb(int iif(topb==maxprintf("\ stack is empty")else for( =topb; <max; ++printf("\ % ",stack[ ])void main(int optionvalclrscr()do printf("\ *****menu*****")printf("\ push in stack ")printf("\ push in stack ")printf("\ pop from stack ")printf("\ pop from stack ")printf("\ display stack ")printf("\ display stack ")printf("\ exit")printf("\ enter your choice")scanf("% ",&option)switch(optioncase printf("\ enter the value to push on stack ")scanf("% ",&val)pusha(val)breakcase printf("\ enter the value to push on stack ")scanf("% ",&val)pushb(val)breakcase val=popa()if(val!=- printf("\ the value popped from stack % ",val)break