Question: what is the difference between array and stack?
Answer: Answer: In an array, you have a list of elements and you can access any of them at any time. But in a stack, there's no random-access operation; there are only Push, Peek and Pop, all of which deal exclusively with the element on the top of the stack. A stack is data-structure which has a last in first out policy.