This commit is contained in:
Oleksandr Vyshniakov 2025-10-12 21:25:42 +02:00
parent 0691cb053f
commit b13a37108f

View File

@ -60,9 +60,9 @@ int main() {
struct stack* novystack = create_stack(STACK_SIZE); struct stack* novystack = create_stack(STACK_SIZE);
push_stack(novystack, 3,14); push_stack(novystack, 3,14);
push_stack(novystack, 2.71); push_stack(novystack, 2.71);
float x = pop_stack(mystack); float x = pop_stack(novystack);
printf("Popped: %2.f\n", x); printf("Popped: %2.f\n", x);
print_stack(mystack); print_stack(novystack);
destroy_stack(novystack); destroy_stack(novystack);
return 0; return 0;
} }