here is my code --> https://ide.codingblocks.com/s/452921
Sir, what is segmentation fault ? and why is it showing in my code?
sir, still showing “segmentation fault”
what input u r giving?
this is running fine
input --> 5 1 3 2 6 5
sir, i wrote the same code as u send me. but, still it is showing segmentation fault
check now->
sir, now code run correctly. why was they showing “segmentation fault” ?
…
i have added comments pls check.
due to invalid index access it was showinf segfault
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.