KNOW:
BE ABLE TO:
Sample Exam Question:
A client program executes the following code:
stack< int > s; s.push(1); s.push(2); s.push(3); cout << s.top( ); s.pop();
_______ __________________________________
used| | data| | | | | |
|_______| |______|______|______|______|______|
[0] [1] [2] [3] [4]
_______
head_ptr| |
|_______|