Hi. The following gives me a segmentation fault and I don't understand why ..
#include <stdio.h>
int main(void)
{
char text[200];
puts("Enter some text and press <ENTER>");
fgets(text, 200, stdin);
printf("You entered %s\n");
return 0;
}
any help appreciated .
thanks