Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- #define SIZE 5
- typedef struct{
- int* data;
- int top;
- int size;
- } Stack;
- Stack* init(int size);
- void destroy(Stack* s);
- void push(Stack *s, int element);
- int pop(Stack* s);
- bool isEmpty(Stack* s);
Add Comment
Please, Sign In to add comment