Odd-even 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