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