tags:

views:

159

answers:

3

I am thinking of buying the book 'The C Programming Language', aka the Bible of C. I read that it doesn't cover the additions to C99. Should it really matter? Or is there a better book out there that I can buy.

Note that I can program in C++ and Python, however I never touched C before but now I have decided to - so I am not a complete noob!

A: 

Take a look at Let us C by Yashwant Kanetkar. Its a fantastic book worth looking reading. It might be difficult to get its hard copy outside India.

Abhijeet Pathak
I heard this was one of those `void main` books.
Derrick Turk
Yes your right.
fahad
A: 

If you use the second edition of the C Programming Language, it's not that different from C99. As a C++ programmer, you probably already know about the main advances e.g. variable definitions anywhere you want, not just at the top of the block, C++ style comments an official part of the language.

You'll find C looks very familiar as a C++ programmer. For instance, control structures are mostly exactly the same.

By the way, if you're using Microsoft Visual Studio, you don't have C99 compatibility anyway.

JeremyP
A: 

The differences between ANSI/C89 and C99 are not that big. And because of (lack of) compiler support C89 is still the standard in a lot of places. So I wouldn't worry to much about that.

As a better book I can really recommend C Programming: A Modern Approach (2nd) by King. It treats both C versions and is easier to read then K&R. This book is also recommended by some f the regulars of the comp.lang.c newsgroup. But it is much more expensive.

But if you are serious about C, you must have a copy of K&R on your bookshelf!

schot