Initializacia

This commit is contained in:
Kozar 2024-10-13 09:36:47 +00:00
parent 824447cc6e
commit d832de7862

View File

@ -67,7 +67,7 @@ void perform_operation(struct stack* s, char* operator) {
result = a / b;
} else {
printf("Chyba: neplatna operacia\n");
exit(1);
exit(0);
}
push_stack(s, result);
@ -92,7 +92,7 @@ int main() {
else {
printf("bad input\n");
return 1;
return 0;
}
print_stack(&mystack);