if(isempty()print("statement is parenthetically balanced")notes else print("statement is parenthetically unbalanced")lab exercise the program given below implements the stack data structure using an array in this program the elements are pushed into array stackthrough pushfunction the parameters passed to pushare the base address of the arraythe position in the stack at which the element is to be placed and the element itself care is taken by the pushfunction that the user does not try to place the element beyond the bounds of the stack this is done by checking the value stored in pos popfunction pops out the last element stored in the stack]becausepos holds the position which has the last element in the stack /to pop and push items in stack *#define max void push int int popint stack[maxint pos void mainint clrscrpos - /stack is empty *push push push push popprintf "\nitem popped out is % " popprintf "\nitem popped out is % " /pushes item on the stack *void push int data if pos =max printf "\nstack is fullelse pos+stackpos data lovely professional university