C string assignment gives segmentation fault
805
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
21869
Assignment makes pointer from integer without cast
96482
returning a pointer to a literal (or constant) character array (string)?
44093
Why does my C program crash when assigning a value to an int pointer?
114892
Segmentation fault - char pointer
91174
Weird initialization in C
12603
Difference between declared string and allocated string
149347
Segmentation fault while taking string from user
30066
How to make a char string from a C macro's value?
137886
Pointers and assignment, how does it work with different types?
116533
Why is there an offset in the Java String implementation?
138470
Copying a part of a string (substring) in C
9983
Segmentation fault (core dumped) in nam ubuntu 14.04
43497
Segmentation fault reversing a string literal
52782
C: function skips user input in code
31433
How do I properly compare strings in C?
12022
Memory Allocation char* and char[]