1.

What Is The Difference Between Array And Stack?

Answer»

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. Basically each member access is done using index. No strict order is to be FOLLOWED here to remove a PARTICULAR element.

Array MAY be multidiamensional or onediamensional but stack should be onediamensional. but both are linear data structure.

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. Basically each member access is done using index. No strict order is to be followed here to remove a particular element.

Array may be multidiamensional or onediamensional but stack should be onediamensional. but both are linear data structure.



Discussion

No Comment Found