Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* main.c */
- #include <stdio.h>
- #include <stdlib.h>
- #include "stack.h"
- int main(int argc, char *argv[]) {
- stack *stk = NULL;
- push(7, &stk);
- push(2, &stk);
- push(9, &stk);
- push(12, &stk);
- push(88, &stk);
- printf("%d\n", pop(&stk));
- printf("%d\n", pop(&stk));
- printf("%d\n", pop(&stk));
- printf("%d\n", pop(&stk));
- printf("%d\n", pop(&stk));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement