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?
805
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
70850
What can cause segmentation faults in C++?
27378
When initializing a char array, is the remaining space zero filled or uninitialized?
113622
Why does a large local array crash my program, but a global one doesn't?
154099
C pointer notation compared to array notation: When passing to function
153118
Segmentation fault using strcat
157507
Segmentation fault with strcpy()
47816
conversion of 2D array to pointer-to-pointer
7739
Segmentation fault on large array sizes
134680
Why can I change the value of a const char* variable?
47759
How do I create an array of pointers?
44093
Why does my C program crash when assigning a value to an int pointer?
96482
returning a pointer to a literal (or constant) character array (string)?
59492
What is the difference between a segmentation fault and a stack overflow?
103597
C++ Error: Incompatible types in assignment of ‘char*’ to ‘char [2]
154573
Segmentation Fault, large arrays
55892
How to use pointer expressions to access elements of a two-dimensional array in C?