A stack is a list of homogenous elements which are of the same type.
what is a stack?
An ordered linear series of things can be stored in an abstract data type called a stack. A stack is a last in, first out (LIFO) structure as opposed to a queue.
Is stack LIFO or FIFO?
The main distinction between stack and queue data structures is that while queue uses a FIFO data structure type, stack uses LIFO. Last In First Out is referred to as LIFO. It implies that the last element is processed first when data is added to a stack. On the other hand, FIFO stands for First In First Out.
A stack is a collection of identically typed components. We can only add and remove elements from one end of a stack.
Hence, the stack is a list of homogenous elements.
To learn more about FIFO from the given link
https://brainly.com/question/12948242
#SPJ4