Posts by user8622 • 21 points
1 post
-
2
votes3
answers910
viewsQ: Error in fgets function
The program gives Segmentation fault (core dump) when executing the fgets function. Any idea? #include <stdio.h> #include <stdlib.h> #include <string.h> main (int argc, char…