Your mission
Write stack.c, a stack of int with no size limit that callers only reach through five functions, where the last value pushed is the first one popped.
See it in action
push 1, 2, 3, then pop three times3 2 1int out = 7; stack_pop(empty, &out);returns 0, out is still 7push 4, push 9, pop, stack_size1
Your checklist
Constraints
- Expected file
stack.c- Allowed functions
mallocfreerealloc- Allowed headers
<stdlib.h>declares malloc, free and realloc<stddef.h>defines size_t and NULL
