List F453 Flashcards

(2 cards)

1
Q

List the steps needed to add one data item into the stack

A

if stack is full, report error and stop
increment pointer
add data item at position ‘pointer’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List the steps needed to pop data item into a stack

A
if stack is empty, report error and stop 
output data(stack_pointer) 
decrement stack_pointer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly