Quote:
//Reverse Function , difficult to understand and yet not giving results
Normal, you are messing with pointers until the end of the list, problem the list is circular list,
there no end!
As uou have been told multiple times, use the debugger and see what your code is doing.
You want advice but don't follow them. Looks like you want full blowup solutions with minimum effort.
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.
Debugger - Wikipedia, the free encyclopedia[
^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.
Advice: take a sheet of paper and try to simulate your algorithm by hand, your program should use the same procedure.