Initializacia

This commit is contained in:
Kozar 2024-10-13 09:31:18 +00:00
parent 1fbb3ac286
commit 0c73d2017a

View File

@ -61,7 +61,7 @@ void perform_operation(struct stack* s, char* operator) {
result = a * b; result = a * b;
} else if (strcmp(operator, "/") == 0) { } else if (strcmp(operator, "/") == 0) {
if (b == 0) { if (b == 0) {
printf("Chyba: delenie nulou\n"); printf("division by zero\n");
exit(1); exit(1);
} }
result = a / b; result = a / b;