Skip to content
Snippets Groups Projects

Resolve "Add pop function"

Merged ines.maya requested to merge 6-add-pop-function into main
2 unresolved threads
1 file
+ 0
13
Compare changes
  • Side-by-side
  • Inline
+ 0
13
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
#define DEFAULT_CAPACITY 4
typedef struct _stack {
int *data;
int capacity;
int top;
} stack;
// depile
// depile
void stack_pop(stack *s, int *value){
void stack_pop(stack *s, int *value){
assert(s->top>=0 && "Stcak is empty\n");
assert(s->top>=0 && "Stcak is empty\n");
Loading