Posts by Rodrigo Zago • 13 points
1 post
-
0
votes1
answer110
viewsQ: I need an explanation why the C code gives a Segmentation fault error
I started my dynamic allocation studies but I’m not able to make a simple example, I couldn’t find the problem. #include <stdio.h> #include <stdlib.h> #define SUCESSO 1 #define FALHA -1…