Skip to content

Instantly share code, notes, and snippets.

View artchiaver's full-sized avatar
🏠
Working from home

Artur Chiaperini Grover artchiaver

🏠
Working from home
View GitHub Profile
#include <stdlib.h>
#include "DynamicStack.h"
struct element {
struct student data;
struct element* next;
};
typedef struct element Elem;
@artchiaver
artchiaver / StaticStack.c
Created April 30, 2018 16:57
StaticStack created by 3dhardgamer - https://repl.it/@3dhardgamer/StaticStack
#include <stdlib.h>
#include "StaticStack.h"
struct stack {
int qtd;
struct student data[MAXN];
};
Stack* create_stack() {
Stack* stk = (Stack*) malloc(sizeof(Stack));