Skip to content
Snippets Groups Projects
Commit 8d8794f1 authored by ines.maya's avatar ines.maya
Browse files

eneleve tous ceux qui est pas fonction pop

parent 4f002953
No related branches found
No related tags found
1 merge request!16Resolve "Add pop function"
#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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment