Why does program return a seg fault when I input a pointer to a string literal but not when i input a pointer to an array?
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?