I tried to apply insertion sort in link list but not able to decode the problem?

https://ide.codingblocks.com/s/285886

hello @namangarg31
image

u can access them only when head !=NULL

and head->next!=NULL;
so handle this case anf then try

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.