data structures/stack/c/stack_in_c.c
/*  Function to delete an element from the stack */
Function to delete an element from the stack
Function to delete an element from the stack
int pop ()
    {
        int num;
        if (s.top == - 1)
        {
            printf ("Stack is Empty\n");
            return (s.top);
        }
        else
        {
            num = s.stk[s.top];
            printf ("poped element is = %dn", s.stk[s.top]);
            s.top = s.top - 1;
        }
        return(num);
    }
int pop ( ) { int num ; if ( s . top == - 1 ) { printf ( " \n " ) ; return ( s . top ) ; } else { num = s . stk [ s . top ] ; printf ( " " , s . stk [ s . top ] ) ; s . top = s . top - 1 ; } return ( num ) ; }
Function to delete an element from the stack
Function to delete an element from the stack