what is the problem in the code i am not getting it
Even odd link list
@royprincejmp you have not assigned anything to prev but are using prev->next (error) (you are assigning prev in while loop, but it is not guaranteed that it will run) .
If this resolves your doubt mark it as resolved
Code for reference, if this resolves your doubt mark it as resolved.