The stack can be implemented as an array and a variable that will keep
the current top of the stack .. the coding is trivial once you
understand this
pseudocode:
Array A;
int current;
function pop()
return A[current--];
function push(object o)
A[++current] = o; (This is where we
hi grewal,
i m doing my first year engg and my teacher told me that we cannot overwrite...i argued with him that the value in the physical memory is not deleted and i m asking you how will we be able to overwrite...can you explain me with a simple coding pls...
Sriram.N
On 5/25/06, A S Grewal