PDF document

c - reversing linked list - Stack Overflow

I am trying to reverse a linked list using recursion and wrote the following code for it. The list is start of the list at the beginning. ... I could see that all the links are getting reversed. However when I try to display, I get an infinite prints of the numbers.

Source: stackoverflow.com