Stack implemented in C:
- Array implementation
- Linked List implementation
Check stack.h for the methods available
// use stack_init to initialize a stack
Stack* stack = stack_init();
// to free the memory use
stack_deinit(stack);# Array implementation
gcc example.c stack_array.c -o example && ./example
# Linked List implementation
gcc example.c stack_linked_list.c -o example && ./example