data structures lab programs

  1. WAP to construct a stack of
    integers using an array and to perform the following operations on it

     a) Push

     b) Pop

     c) Display

    The program should print appropriate messages for stack overflow and
    stack underflow .
  2. WAP to convert a given valid
    parenthesized infix arithmetic expression to postfix expression. The expression
    consists of single character operands and the binary operators + (plus), -
    (minus), * (multiply) and / (divide).
  3. WAP to simulate the working of
    a queue of integers using an array. Provide the following operations

    a) Insert

    b) Delete

    c) Display

    The program should print appropriate messages for queue empty and
    queue overflow conditions





    -Y�&��