6 marksAbstract Data Types (ADTs)
CAPE Computer Science Unit 2 · 2013 · Paper 2 · Question 1(a)(iii)
A stack is needed to store characters. Assume stack capacity is 1000 characters.
Write a function to pop a character from the stack, accounting for stack underflow.
The mark scheme is shown once you've answered.
Practise this question