@mlehto I used to teach comp programming and went through several textbooks for C. I've got to say, the original version of one of the recommendations I'm going to give....I used to _hate_, but it depends on what your starting point is.
Must have: K&R 'The C Programming Language, 2nd Edition" by the original authors of the language, Brian Kernigan and Dennis Ritchie: The C Programming Language
Deitel and Deitel- "How to Program in C, 4th Edition":
How To Program in C
The first one may be too dry, and isn't meant as a learning book, but as a definitive reference. It's a must have once you're writing some real code.
The Deitel and Deitel book (and their others for diff languages) have become one of the standards for comp programming texts in colleges today, although usually not followed verbatim AFAIK. They're expensive, but thick and fairly complete, usually with useful additions outside of 'just the language' (for example their Java book also covers Ant, eclipse, UML etc, not strictly Java but useful)
The biggest gripe I have with books like D&D is in many cases they still act like comp sci or programming is still a math discipline, doing such utterly non-real-world useless things like calculating Fibonacci numbers and similar. While this is fine for some students, it's awful for anyone less math inclined....so a book like Sams Teach Yourself C
might be a better first read, followed by the other two.
A few words of advice: 1. Always get the latest edition of the book available. Both C and C++ have undergone numerous revisions, some of which were fairly recent....which you'd be better off learning from the start.
2. Platform- for the learning stage, choose a platform agnostic book, or a book on Linux, assuming you have access to a Linux system. These books are much more ANSI compliant in their content generally than anything that mentions 'Windows programming.' Additionally, AOS4 seems to use gcc for it's compiler, so learning C on a Linux platform would be more useful if you'd like to ultimately develop for AOS.
All of the C books mentioned will cover the standard C lib, libc (or glibc), and should get you going in the right direction. If I had to choose 2 of them for a new pgorammer, it would be 2 & 3, and put #1 on your xmas or bday list. For an experienced programmer in another language, #1 and #2.
_________________ Are we not done with the same silly arguments and flames yet??! |