This commit is contained in:
Oleksandr Vyshniakov 2025-10-12 21:24:45 +02:00
parent e1bbef4fbe
commit 0691cb053f

View File

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