There are many reasons for the segmentation fault, here I am listing some common causes of the segmentation fault.