https://ide.codingblocks.com/s/62052
Why the changes in head are not reflected even if i have passed it through reference
Segregate even odd
Hi Kiran, in your function segregateEvenOdd(), the change in the list was not happening there are errors in some conditions(in line 64 & 66).
In line 64 change NULL to end.
In lIne 66 add %2 after data.
Also, the change do happens when you pass any node by reference.
This will make your code work fine
Hi Kiran, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.