
hello,
What is the difference between ARRAY and STACK?

hii,
STACK follows LIFO. Thus the item that is first entered would be the last removed.
In Array the items can be entered or removed in any order.

a stack is simply a special case of an array. You could say that a stack uses user defined methods to remove and add contents to an array such that the LIFO rule is adhered to.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.