by krychu · 6y ago · 0 comments
Here’s an excellent book: C Programming: A Modern Approach, by King.
Avoid online tutorials, and know that there are many poor books on C, including the recommended here “Learn C the Hard Way”. It has factual problems; see under “Stuff that should be avoided” here: http://iso-9899.info/wiki/Main_Page
Note also, that unlike some other languages, C is not a language that you should learn by “trying things out”, due to the nature of “undefined behavior”.
Another recommendation would be to ask for CR on IRC.
Good luck!
If at some point you want to really become a master, then switch to the actual standard.
I disagree. You have to learn the ways in which things fail in any language you learn, especially a language like C.
If you want to know how things can fail (or, what things can fail in unspecified ways), you have to do a bit of reading and no amount of trying and experimenting will conjure that knowledge.
Yeah, that's the point. Chasing that knowledge is pointless. Instead, read the spec and find out what is legal and what is not. What is defined and what is not. Then you can stop worrying about how things fail and start worrying about not doing those things.
One of them was certainly this one: https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=63...
This is readable: http://web.archive.org/web/20140629013829/http://blogs.msdn....
I had to start coding for work in C and without some good footing it was frustrating dealing with older code and creating new things with my very limited experience. (I had c++ which isn't the same.)
Having spent a week going a book and getting up to speed helped greatly and increased my enjoyment, reduced my frustration fwiw.