2 ms·
That section on linked lists (cons in c and sml) was really nice. I don't think I've ever seen such clear, plain c for working with singly linked lists (which e
by e12e 13y ago
That section on linked lists (cons in c and sml) was really nice. I don't think I've ever seen such clear, plain c for working with singly linked lists (which even checks the return code for malloc!).
I actually had to look up what K&R had on it, and there's a section on tree-structures -- but it ends up being cluttered (although that's justifiable in K&R -- the focus isn't just on simple example code).
Disclaimer: I don't actually know C :-)
[edit: link: http://eprints.eemcs.utwente.nl/1077/08/list.html http://eprints.eemcs.utwente.nl/1077/08/list.html ]