Why does one way of malloc seg fault but another doesn't?
100567
Malloc inside a function call appears to be getting freed on return?
157507
Segmentation fault with strcpy()
31433
How do I properly compare strings in C?
35533
Writing to pointer out of bounds after malloc() not causing error
70909
Segmentation fault occurring when modifying a string using pointers?
5367
In what cases do I use malloc and/or new?
8984
What is the difference between new/delete and malloc/free?
140791
"Segmentation fault" vs "run time" error?
70850
What can cause segmentation faults in C++?
149225
Why is this causing a segmentation fault?
26047
when to carefully use free() to free up malloc() used memory?
138845
C++ Struct Pointer Segfault
66128
Segmentation fault trying to dereference an iterator
147853
How do the "->" and "." member access operations differ in C
33195
Segmentation fault error occurs for a simple function I have coded
75156
Segmentation fault on auto-complete
74858
In C, are arrays pointers or used as pointers?