3 ms·
The problem with books that use C as their example language is that they don't cover the finer points of C that are going to fuck you in real life. What happen
by jrockway 16y ago
The problem with books that use C as their example language is that they don't cover the finer points of C that are going to fuck you in real life. What happens when you strncpy a string that's the same length as n? How should fatal errors be handled? Who is responsible for memory allocation and deallocation?
These are questions you need to know the answer to, but are unrelated to whatever the book is about.
The best way to learn C is to learn some other programming language, and then apply the common sense you learned back to C.
- Locke1689 16y agoNo, you won't ever really learn that stuff until you just do it. Reading code is part of writing code so you should read some actual C code in your domain before ever writing code.