I saw many questions about getting segmentation fault in C program here in SO, and I thought it would be great to have a reference to those here, a question
free() a pointer not obtained through malloc()free() an invalid pointerprintf() format specifier and actual argument typesfree() an invalid pointerUndefined Behaviour can manifest itself by a "segmentation fault", but that is by no means a required outcome. Anything could have happened :)