Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SIZE 50
- void push(int i);
- int pop(void);
- int *tos, *p1, stack[SIZE];
- void push(int i)
- {
- *++p1 = i;
- }
- int pop(void)
- {
- return *(p1--);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement