Which of the below are examples of Stack?
i. papers kept in a printer tray
ii. pile of books in a library
iii. finding binary equivalent of a decimal number
i & ii
i, ii & iii
i & iii
All the below are examples of Stack (LIFO):
1.papers kept in a printer tray - Because top paper will be printed first
2.pile of books kept in a library rack - top book will be removed first
3.finding binary equivalent of a decimal - when reading it, we read in revers order.
Back To Top