What is the difference between Stack and Array? - ProProfs Discuss
Topics
Products
Follow Us:

What is the difference between Stack and Array?

Asked by B. Wright, Last updated: Jul 04, 2020

+ Answer
Request

2 Answers

O. Bickis

Get immense pleasure in traveling and writing about visiting places.

O. Bickis, Corporate employee, MBA, Stockton

Answered Jul 22, 2019

The array will already list down the different elements that you may possibly need. You can access them anytime that you want. Array does not have any limit and you can enter the data at any position that you want. When you are using stack you only have one gate in order to follow when you want to enter data or when you want to exit.

The array will already list down the different elements that you may possibly need. You can access
The stack is known to be one of the special case implementations of an array. It will follow the usual order of last in and first out. It is only the element in the topmost position that can be taken.

 

I. Klose

I. Klose, Accountant, Franklin

Answered Jul 17, 2019

Some people are not sure if they would use stack or array. According to a lot of experts, they would instead use an array because this will make sure that the various things that you need will be available to be viewed. It will also be easier to access the different elements that are available because there is no limit to the number of positions that you may want.

Some people are not sure if they would use stack or array. According to a lot of experts, they
The stack is known to be used if you want to create a particular case from the array. Take note that the moment that you choose with the use of the stack, you cannot change it anymore. The use of stack will only allow you to remove the top portion of the element every time.

 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.