Skip to content
Snippets Groups Projects

add function stack_push

Merged richarda.tyarks requested to merge 5-add-push-function into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -24,7 +24,7 @@ void stack_push(stack *s, int value)
@@ -24,7 +24,7 @@ void stack_push(stack *s, int value)
}
}
s->top++;
s->top++;
s->data[s->top] = val;
s->data[s->top] = value;
}
}
void stack_pop(stack *s, int *value) {
void stack_pop(stack *s, int *value) {
Loading