Singly-linked list/Reversal: Difference between revisions

m
Fixed C header
imported>StraightDoubt
m (Fixed C header)
Line 47:
</pre>
 
== {{header|C }}==
This code works by reversing the pointers in the list. The function returns the new beginning of the list, or NULL if passed a null pointer.
 
3,045

edits