Ask HN: Best book to learn C in 2022? Recommendations from 100 sampled comments out of 155 eligible comments. This page covers the sample, rather than the entire HN thread.
orsenthil · Oct 9, 2022 Using K&R, I try to practice the problems and understand them to learn C. ljosifov · Oct 8, 2022 another vote for K&R "The C Programming Language" - for the sheer joy of it! ccouzens · Oct 8, 2022 the only c book I've read was the k&r book. It seemed fine. hankchinaski · Oct 8, 2022 what I used was "The C Programming Language" book. It was a great experience fargle · Oct 8, 2022 Here's another vote for K&R. readme · Oct 8, 2022 K&R is a must have for any C programmer. Syzygies · Oct 8, 2022 K&R would put C in historical context. apricot · Oct 8, 2022 reading K&R is a must pjmlp · Oct 8, 2022 Regarding K&R C, you should read it for its historical relevance to the C programming language anthk · Oct 8, 2022 Just read K&R C 2nd ed hiepph · Oct 8, 2022 K&R is a bit more intermediate. Come back to it when you're more experienced. GeneT45 · Oct 8, 2022 K&R is so obsolete it's now wrong about some things. cxr · Oct 8, 2022 Here's my advice to the original poster:
If you come across unsubstantiated comments telling you to ignore K&R for all the bad things it contains, then ignore those. flohofwoe · Oct 8, 2022 K&R was a very interesting read for me flohofwoe · Oct 8, 2022 K&R 2nd Edition is still a very good read of course lloydatkinson · Oct 8, 2022 34 year old book gregjor · Oct 8, 2022 K & R Trex_Egg · Oct 8, 2022 I recommend "Computer Systems: A Programmer's Perspective" zh3 · Oct 8, 2022 [1] is a very good book stusmall · Oct 8, 2022 This is my favorite of the bunch. miguendes · Oct 8, 2022 King’s is amazing, IMO. Very didactic and covers C in depth. throwaway2037 · Oct 8, 2022 This book was a life saver. armitron · Oct 8, 2022 King is good equilibrium · Oct 8, 2022 C Programming: A Modern Approach by King sfpotter · Oct 8, 2022 reading Hanson's book is a reasonable way to get some ideas. rramadass · Oct 8, 2022 The data structures/algorithms given in Hanson's book are "industrial strength" ljosifov · Oct 8, 2022 Close to as much fun to read was maybe Steve Maguire's "Writing Solid Code". Blackstrat · Oct 9, 2022 I preferred Seacord’s Effective C to Modern C. jmercan · Oct 8, 2022 I would say "Effective C" is a good book GeneT45 · Oct 8, 2022 Effective C is the most current in terms of being up to date with present-day C standards. armitron · Oct 8, 2022 Effective C Blackstrat · Oct 9, 2022 I preferred Seacord’s Effective C to Modern C. pjmlp · Oct 8, 2022 Secure C from Oreilly and Modern C from Manning are more relevant in 2022. fhchl · Oct 8, 2022 I recommend "Modern C" by Jens Gusted. anthk · Oct 8, 2022 then the book on Modern C belter · Oct 8, 2022 Also "Code Reading" will be useful. cryptonector · Oct 8, 2022 The best one might be https://doc.rust-lang.org/book/ chubot · Oct 8, 2022 I read the Hanson book ~10 years ago mhd · Oct 8, 2022 I especially like that the focus is on the module level, not on the algorithms themselves. bmitc · Oct 8, 2022 I highly recommend Head First C. sureglymop · Oct 8, 2022 I would recommend "Head First C" from o reilly.