1A segmentation fault (aka segfault) is a common condition that causes programs
2to crash; they are often associated with a file named core.
3
4Segfaults are caused by a program trying to read or write an illegal memory
5location
1Segfaults are caused by a program trying to read or write an illegal memory location
1## Segmentation Fault ##
2
3when it will come ? READ Conditions below ...
4
5- segmentation fault comes when you have an array of 10 size and
6 you are accessing the arr[12] so you are accessing the unknown memory
7 which is not yours so it will gives you error...
8
9- If you are asking for memory but it doesnt have any memory left so error...
10
11...so both conditions above will gives you error as segmentation fault.