Merge Sort (Linked List)

What is wrong in the code?
Code: https://ide.codingblocks.com/s/584431

It says segmentation falt.

Hi there was a small mistake.
image
here u had used fast or fast->next while it should be fast && fast->next

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.

I tried writing again the merge sort code myself. Now i am facing different problem. The LL is sorted successfully, but the node at center is not printing. Please help me identify the mistake. Code: https://ide.codingblocks.com/s/598707

yrr code to shi chlra hai…
have checked for both odd length and even length… baki koi dikkat ho to refer to my code https://ide.codingblocks.com/s/232798

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.