Segmentation fault

I did not find where Segmentation fault happen.

hi @thekaif7 please share your code using CB IDE

hi @thekaif7 is this program for merge sort or merging 2 sorted linked lists?

merging 2 sorted linked list

sorry it is Merge Sorted Linked Lists

@thekaif7 call the merge function then. why are you calling merge sort function?
Also, you are not creating 2 lists you inserted the nodes in the same list 2 times

ooh very silly mistake . Thanks buddy.

@thekaif7 dont forget to mark the doubt as resolved!