PDF document

Reversing a linkedlist recursively in c - Stack Overflow

The smallest would be a list of 2 nodes 1->2->null. To make it generic, we will always refer to other nodes from the first node. To reverse this, set first (1)->next (2)->next (null) = first (1) making it 12 and then first (1)->next (2) = null will result in null

Source: stackoverflow.com