All Questions
2 questions
3
votes
4
answers
363
views
K&R Exercise 1-19. Reverse program input one line at a time
Intro
I'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it: learn (outdated) C and practice problem-solving at the same time. For that reason, I'm trying to ...
6
votes
2
answers
10k
views
Reversing a linked list by iteration and recursion
From my original question on Stack Overflow: Is my implementation of reversing a linked list correct?
I'm a beginner at C and I'd like to know about style, and correctness of the reverse algorithms. ...