query: char *str vs char str[] : segmentation issue
positive_passages.docid: 805
positive_passages.text: Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
negative_passages.docid: 123203
negative_passages.text: Why does this intentionally incorrect use of strcpy not fail horribly?
negative_passages.docid: 154573
negative_passages.text: Segmentation Fault, large arrays
negative_passages.docid: 103597
negative_passages.text: C++ Error: Incompatible types in assignment of ‘char*’ to ‘char [2]
negative_passages.docid: 70850
negative_passages.text: What can cause segmentation faults in C++?
negative_passages.docid: 43497
negative_passages.text: Segmentation fault reversing a string literal
negative_passages.docid: 19438
negative_passages.text: How to convert a char array back to a string?
negative_passages.docid: 122895
negative_passages.text: Difference between array and pointer
negative_passages.docid: 113647
negative_passages.text: Tokenizing strings in C
negative_passages.docid: 28634
negative_passages.text: Why printf() when printing multiple strings (%s) leaves newline and how to solve this?
negative_passages.docid: 116048
negative_passages.text: Char array in a struct - incompatible assignment?
negative_passages.docid: 12022
negative_passages.text: Memory Allocation char* and char[]
negative_passages.docid: 52678
negative_passages.text: How to convert a C string (char array) into a Python string when there are non-ASCII characters in the string?
negative_passages.docid: 51214
negative_passages.text: invalid conversion from ‘const char*’ to ‘char’
negative_passages.docid: 155257
negative_passages.text: Converting 1-D String array to 2-D char array
negative_passages.docid: 45298
negative_passages.text: Deleting char* after assigning it to a string variable
negative_passages.docid: 87669
negative_passages.text: C input - getchar()