4 ms·
Who told that? I still hear K&R being recommended as introduction material. If you want to write portable/production-grade C code, well definitely need to stud
by anta40 1y ago
Who told that? I still hear K&R being recommended as introduction material.
If you want to write portable/production-grade C code, well definitely need to study another references.
- adamors 1y agoExactly, I was looking into refreshing my C knowledge recently and K&R is still heavily recommended.
- flohofwoe 1y agoThe problem with K&R is that there never was a third edition that covered C99, which compared to C89 is almost a new language. K&R is an interesting historical artifact about the basic design decisions of the C language and definitely recommended reading material, but you're not doing yourself a favour using it as reference or for learning the language. For that it is vastly outdated, C ist a much more enjoyable and powerful language since C99.
- pjmlp 1y agoGo with such a book instead, https://www.manning.com/books/modern-c https://www.manning.com/books/modern-c
- pjmlp 1y agoBecause most people know no better, and recommend their UNIX heros. This is a more useful book for modern days, https://www.manning.com/books/modern-c https://www.manning.com/books/modern-c flohofwoe already put it out clearly on his comment.
- Arch-TK 1y agoThere are very few resources for learning C which aren't themselves full of terrible C. If you want a short introduction with the caveat that it only covers C89, only covers parts of it, and doesn't cover e.g. POSIX or anything outside of standard C then K&R2 + errata is fine. If you want a long book on C which has a more modern approach then there is K. N. King's C a Modern Approach. Jens' book is at least vouched for by https://iso-9899.info/wiki/Books https://iso-9899.info/wiki/Books . So I have to assume it's also okay.