CS Electrical And Electronics
@cselectricalandelectronics

What is stack in data structure?

All QuestionsCategory: Data StructureWhat is stack in data structure?
chetan shidling asked 4 years ago

I need short information.

1 Answers
Chetan Shidling answered 4 years ago

The stack is an essential data structure that stores its components in an arranged manner. A stack is a linear data structure that uses the principle, i.e., the components in a stack are added and removed only from one end. Therefore, a stack is called a LIFO (Last-In-First-Out) data structure, as the data or element that was inserted last is the first one to be brought out.