sir, how to identify segmentation fault and resolve it please tell ?
This code is not working
thank you sir,
also please explain me what is this segmentation fault exactly?
it occurs many times in my code
when we try to access memory that is not part of our program then it gives segmentation .
mostly happens in following cases->
a) when we deal with pointers ,
b) when we try to allocate too much memory in our program
c) we try to access array using invalid index(negative index or index greater than size of array).
etc
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.