Difference between ARRAY and STACK

Illustrates the difference between ARRAY and STACK?

E

Expert

Verified

STACK follows Last in First out. Therefore the item which is first entered would be the previous removed.

Within ARRAY the items can be removed or entered in any order. Fundamentally each member access is completed by using index. Here to get rid of an exact element, no strict order is to be followed.

   Related Questions in Data Structure & Algorithms

©TutorsGlobe All rights reserved 2022-2023.