5 marksAbstract Data Types (ADTs)
CAPE Computer Science Unit 2 · 2009 · Paper 2 · Question 1(a)(ii)
A Stack Abstract Data Type (ADT) provides pop(Stack), push(Stack, data), and isEmpty(Stack) operations.
Write C code for a function implementing the push(Stack, data) operation for integer data, properly handling stack overflow conditions.
The mark scheme is shown once you've answered.
Practise this question