Implement Stack by using dynamic arrays
When a stack is implemented by using static arrays the size of the stack is bound to MAXSTK(i.e maximum elements a stack can have)but some time stack need be dynamic. This can be achieved by using dynamic arrays The memory for the stack is dynamically allocated by using memory allocation functions such as malloc or […]


