Posts by Francisco Nascimento • 11 points
1 post
-
1
votes0
answers28
viewsQ: C structure to be dynamically allocated
I’m needing it to be dynamically allocated but I’m not finding the problem. #include <stdio.h> #include <stdlib.h> #define tam 10 typedef struct pilha{ char dado[tam]; int pos; }Pilha;…