4 ms·
K&R "The C Programming Language" is a classic. If you're serious about learning C this book should definitely be in your collection. It's the book most C progra
by jeffwass 11y ago
K&R "The C Programming Language" is a classic. If you're serious about learning C this book should definitely be in your collection. It's the book most C programmers have cut their teeth on over the past several decades, written by the guys who wrote the language itself. (Though go for the most-current ANSI version). If you already know basics of programming methods from Python or JS, you'll be able to handle this book. Make sure to do the exercises!
Beyond that, it would depend what you're hoping to do with C. Eg, Linux kernel hacking? Optimized Python numpy routines?
There also are some recent books that focus on writing 'modern' and also safer C code, particularly with regard to usage of pointers. There are some links on Amazon and O'Reilly that may be helpful (I haven't read any so can't give recommendations)
- erbdex 11y ago> Linux kernel hacking? An excellent resource here as a beginner would be- http://www.advancedlinuxprogramming.com/ http://www.advancedlinuxprogramming.com/
- vezzy-fnord 11y agoPretty sure that one's for userspace programming. In which case, I'd recommend The Linux Programming Interface instead, which is written by the same person who maintains the Linux man-pages. There isn't much of a central source on kernel hacking that isn't outdated by now, though some reasonably good books on device drivers are still out there and relevant. Beyond that, reading the kernel's Documentation directory, LWN articles and the recent "Linux Insides" series being posted here is your best bet, along with stalking the LKML, of course.