Sort lonked list using insertion sort

getting segmentation error

https://ide.codingblocks.com/s/411354, for even length it is working but for odd getting segmentation fault

when will u tell me , bcoz of u other TA is not giving me answer to my problem, please reply soon,

@officialharshit1996 see this:
corrected code:


Happy Learning!!

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.