Describe the stack memory (or data) structure. Give a four-word description of the stack discipline.

What will be an ideal response?


A stack data structure is analogous to a stack of paper, where we assume we have an inexhaustible supply of clean sheets of paper. In order to place information on the stack, we write it on a clean piece o paper and put the paper on the stack. To get information we can only read the top piece of paper. To get information further down, we must remove some paper. The rule is, if a piece is removed, it is thrown away. The four word description is last-in-first-out, or LIFO.

Computer Science & Information Technology

You might also like to view...

In the accompanying figure, item 2 is pointing to the ____.

A. Office button B. scroll bar C. menu bar D. tabs

Computer Science & Information Technology

A firewall can be used to shield your computer from direct access to the Internet

Indicate whether the statement is true or false

Computer Science & Information Technology

The Windows Classic style has trim, straight-edged bars, borders and buttons

Indicate whether the statement is true or false

Computer Science & Information Technology

Numbers with decimals are the ____________________ numeric data type.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology