Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- #include "task1a.h"
- #include "task1a.c"
- int main( int argc, char const *argv[])
- {
- Stack*s1 = init(SIZE);
- push(s1, 10);
- push(s1, 20);
- push(s1, 30);
- push(s1, 40);
- push(s1, 50);
- printf("Size of the stack: %d\n",s1->size);
- push(s1, 60);
- printf("Size of the stack: %d\n",s1->size);
- while(s1->top != -1)
- {
- printf("%d\n", pop(s1));
- }
- destroy (s1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement