Advertisements
Advertisements
प्रश्न
Name a data structure that follows LIFO principle and one that follows FIFO principle.
लघु उत्तर
Advertisements
उत्तर
LIFO architecture : Stack
FIFO architecture : Queue
Explanation: The stack is a data structure that allows for insertion and deletion from the top, with the piece placed at the end coming out first. The queue data structure resembles practical queues in the real world. The element that comes first gets served first.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
