Even after odd in linked list

https://ide.codingblocks.com/s/325741 in line 44 I want to make new node i.e c is this line correct node *c ? moreover its giving me segmentation fault. in my code firstly i seperate odd and even elements the add both the linked list . pls resolve my doubt.if possible pls make changes in my code

hello @shrutikatyal i have made all the necessary changes in your code .
https://ide.codingblocks.com/s/325948.
i hope i have cleared your doubt
Happy Learning!!

if you feel your doubt is cleared please mark this doubt as resolved .
on off the chance if you still have doubt you can reopen the doubt and again get it resolved .
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.