A stack is a kind of data structure that is used to store a collection of objects; objects are stored using push operation and objects are retrieved using pop operation.

This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
A stack is an abstract data structure that is used to store data (in main memory) in a particular method.  It is a way of organizing memory.

It is like a narrow box or bin. You can add books to it from the top one by one and you can only remove books from top one by one. The other end is closed.

It is also like a pile of books or bricks on a table.

It is used in computer science, for implementation of evaluation of functions and  evaluation of recursive expressions.  It is used by the computer or calculator while find the result of any arithmetic expression like:  3 + 9 - 38 + 8*9 + (9/4)².