Differentiation between STACK and ARRAY

Write down the differentiation between STACK and ARRAY?

E

Expert

Verified

STACK follows LIFO. Therefore the item that is first entered would be last removed.

In array the items can be removed or entered in any order. Essentially each member access is completed using index. No strict order is to be followed here to remove a specific element.

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.