A program that dynamicaly allocates memory and increases and decreases size of array using stack.Initially array is of size 10.
#include "stdafx.h" #include <iostream> using namespace std; class stack { private : int *lifo; int top,size; public : stack() { lifo= new int [10]; size=10; top=0; } void push( int temp) { lifo[top++]=temp; if (top>size-1) { ...