Even after odd problem

No output is coming.Kindly resolve

@sulbh579
You are not advancing the curr pointer inside the while loop in evenodd1 function.
If this resolves your doubt mark it as resolved.

still no output is coming

@sulbh579 you have put the curr=curr->next in else block .
Second thing you are printing even first then odd, it should be opposite.


Here is your updated code.
If this resolves your doubt mark it 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.