HERE IS THE LINK
Even after odd not working properly
Ayush, you are using somewhat wrong logic in your code due to which It is showing runtime error. So i would suggest you that you can maintain 5 pointers as :
node *evenstart=NULL;
node *evenend=NULL;
node *oddstart=NULL;
node *oddend=NULL;
node *current_node=head;
and then using this check if current_node data is odd or even and then based on that change the values of evenstart, evenend , oddstart and oddend…
This is how you can work as in your code, .
got it thankq mam thnx for the response