The structure of a stack #define MAX_STACK 100 #define EMPTY -1 typedef struct _stack { int contents[MAX_STACK]; int topPointer; } stack; Creating a new stack void createStack (stack *s) { (*s).topPointer = EMPTY; } Getting the top … Continue reading
↧