Advertisement
dllbridge

Untitled

Oct 19th, 2020
1,975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. int stack[1000];
  2.  
  3. int *sp;
  4.  
  5. #define push(sp, n) (*((sp)++) = (n))
  6. #define pop(sp) (*--(sp))
  7.  
  8. {
  9.     sp = stack; /* initialize */
  10.  
  11.     push(sp, 10);
  12.     x = pop(sp);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement