Segmentation error in merge sort linklist

@guptarahul3100 change the base condition “&&” to “||” because it must return for both the cases.

Also after returning from the merge(a,b) function assign this to ‘head’ like head = merge(a,b)
This is because you are returning the merge list from the there.
Let me know if you are still not able to solve this.