Stack By One dimensional Array ::
Code :: int Stack(10); ::

Stack(i) Memory STACK            Operation
    9     11010            TOP = 9
    8     11001           
    7     11000           
    6     10111           
    5     10110           
    4     10101           
    3     10100           
    2     10011           
    1     10010           
    0     10001            BOTTOM = 0


Data out :