Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int stack[1000];
- int *sp;
- #define push(sp, n) (*((sp)++) = (n))
- #define pop(sp) (*--(sp))
- {
- sp = stack; /* initialize */
- push(sp, 10);
- x = pop(sp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement