Is K&R sufficient to become a competent C programmer? It seems too compact. Will it teach me how to write actually good C programs, or is it just a reference?
>>62119631
That's like asking if knowing the alphabet will make you rich like jk Rowling. No, but it's a necessary start
>>62120178
So starting with K&R isn't a mistake at least?
What should complete it once I'm done?
>>62119631
K&R is a great book and more advanced than modern intro books.
You're fine if you get through that and have a firm understanding of it.
>>62120195
Some people say K&R teaches bad habits or outdated ones, which is why I'm asking.
>a firm understanding of it
I'm finding some exercises pretty complicated since I tend to get memory errors, segmentation faults and whatnot. I'm hoping the book expands on the safety aspect later on.
>>62120190
Practice
Why don't you learn assembly like a real man?
>>62120797
I will, right after C.
>>62120707
How to make sure I don't acquire bad programming habits though? Maybe I'm worrying over nothing.
>>62119631
Personally, I prefer the O'Reily C Programming book for learning C. A little more modern, good practice exercises and I like how it discusses code documentation.
>>62120848
"Practical C Programming"?
It will teach you C fundamentals but not things like build tools, how to make a parser, how to use network, signals, threading, error handling and logging etc.
>>62121079
>build tools, how to make a parser, how to use network, signals, threading, error handling and logging etc.
Do I use the documentation for that or is there a decent book on those things?
>>62120869
Yeah. Has a cow on the cover. That book taught me C, and I felt like it was thorough and a good starting book.
>>62121140
Oh I see, I think I have it. I'll take a look at it too then, thanks.
>>62120255
>I'm hoping the book expands on the safety aspect
It doesn't really.
>>62120838
K&R C has weird little quirks, eg. you can't declare a loop variable inside the loop
So pay attention to what new versions of C added
>>62121202
There is also a small pocket reference version of it too. If you like the Cow Book, it's a handy guide in case you get stuck or blank on something.
I'd recommend you to get the K&R 2nd edition
>>62119631
K&R is good for turning a beginner C programmer into an intermediate C programmer.
>>62119631
>>62120255
K&R was written in a time before people knew C as "buffer overflow the language."
Read "Learning C the Hard Way" to not contribute to the fall of modern civilization via shit coding practices.