Advertisement
PT_

Untitled

PT_
May 3rd, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #define SIZE 50
  2.  
  3. void push(int i);
  4. int pop(void);
  5.  
  6. int *tos, *p1, stack[SIZE];
  7.  
  8. void push(int i)
  9. {
  10. *++p1 = i;
  11. }
  12.  
  13. int pop(void)
  14. {
  15. return *(p1--);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement