Code gives wrong answer!

https://ide.codingblocks.com/s/354380.please ckeck my code.

hello @Nikhil-Jettley-2567269533523013
you have doubt in even odd question or in some any other question ?

@Nikhil-Jettley-2567269533523013 the link which you have shared contains the simple code of inserting the data at the end and it is perfectly working fine .
but you were not giving any input thats whu it was giving the error .


if you have any other doubt please ask here .
Happy Learning !!

even odd linked list

by mistake i gives you wrong code link.please check my code and pointed out my mistake.

@Nikhil-Jettley-2567269533523013 okay wait

hello @Nikhil-Jettley-2567269533523013 i have reimplemented your logic and now it is printing the correct result.


please go through the code and try to understand the mistakes .
if you have any doubt any line please ask here .
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.