This commit is contained in:
Nataliia Kobryn 2025-10-16 21:56:06 +02:00
parent d4fbad15f2
commit 6d3953b1c0

View File

@ -22,8 +22,8 @@ int is_full(struct stack *s){return s->size==STACK_SIZE-1;}
void push(struct stack *s, float value){
if (is_full(s)){
printf("bad input\n");
exit(1);
printf("full stack\n");
exit(0);
}
s->values[s->size++]=value;
}