Even after odd one test case failing

Hi @Vivek-Pandey-2129725577345937
You are getting run error for the case in which there is no even number in the linked list :
5
1 3 5 7 9

And this is because at line 66 of your code you are using even_end->next=NULL; and when there is no even number then even_end=NULL so you are trying to access next of a null pointer hence it is showing run error. To correct it just add a condition above this statement :
if(even_end!=NULL)

Here is your corrected code :

If your doubt is clear then mark it as resolved.

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.