Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- unsigned short st[11], varf;
- void push(unsigned short x) {
- if (varf > 9) return;
- st[++varf] = x;
- }
- void pop() {
- unsigned short copie = st[varf];
- }
- int main(){
- unsigned short x, i;
- for (i = 1; i < 8; i++) {
- printf("st[%d]= ", i);
- scanf("%hd", &x);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement