I’m always a little confused by the hype of KnR. It seems like just an introduction on the syntax of c?
It doesn’t seem to really tell you how to build great programs with C or anything more complex than the absolute basics which you can find on the internet for free.
I found the Annotated ANSI C Standard by Herbert Schildt to be far more helpful in understanding C syntax than the K&R book ever was. I was lucky enough to find it in a local book store while still in high school in 1993.
That's a different book than the one I was referring to. I was referring to The Annotated ANSI C Standard: American National Standard for Programming Languages-C : Ansi/Iso 9899-1990.
I learned C in the early 90's with one of Schildt books. I actually did learn something. So there is that. It has a place close to my heart but I have to agree with most. It's not a great book.
I wish I would have a couple of good examples at hand, though
24 comments
[ 1.6 ms ] story [ 37.8 ms ] threadIt doesn’t seem to really tell you how to build great programs with C or anything more complex than the absolute basics which you can find on the internet for free.
[0] http://herbert.the-little-red-haired-girl.org/en/c-links/ind...
http://catb.org/jargon/html/B/bullschildt.html
I wish I would have a couple of good examples at hand, though
K&R's strength is its exceptional style. It's a real masterpiece in clarity, and sets a mark that most technical literature fails to pass.
[1] https://gustedt.gitlabpages.inria.fr/modern-c/ [2] https://news.ycombinator.com/item?id=21006995
Very dated but one of the best CS books I read, also has a lot of anecdotes about programming that are generally interesting
This is so well put, thank you.
> Integer types are unsigned by default, except for char.
unsigned by default? I'm pretty sure `int`, `long`, `short` and `long long` are signed by default.