Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Does anyone know of good books that are tailored for Java developers looking to transition to C & C++? I have the classic K&R ANSI C book but was looking for something more tailored to those that learned Java first, such as having examples of similar code/functionality between Java and C and C++.

I know there is this list, http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list, but was looking for books specifically written for Java developers.

Thanks!

EDIT: I am looking to learn both C and C++, so books for either aimed at Java developers would be great!

share|improve this question
11  
Are you looking to do C or C++? Because they are different. – World Engineer Nov 11 '11 at 19:18
2  
C or C++ will be a massive difference. – DeadMG Nov 12 '11 at 3:17
Throwing C and C++ into the same pot sounds dubious at best. If you want to do C++, for the third edition of Meyers' Effective C++ the book was massively changed in order to better guide developers coming from languages like Java. (Earlier editions were aimed at C developers.) – sbi Nov 14 '11 at 11:18
I am looking to learn both :) Updated OP to clarify. – soulesschild Nov 14 '11 at 17:31

closed as not constructive by gnat, MichaelT, Martijn Pieters, Dan Pichelman, Bart van Ingen Schenau Jun 15 at 17:53

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

2 Answers

I myself have been reading Accelerated C++ for a while, and it's a great read IMO. You are aware of programming concepts already, but there are some subtleties when it comes to C/C++. The mentioned book is nice, as it teaches you to use the language efficiently and at a higher level from the beginning. For C, I suggest K&R - absolutely. Actually, Stroustrup's The C++ Programming Language is also interesting, but it's HUGE - as the language itself. For C++, an excellent second book would be Scott Meyers' Effective C++. Very interesting for people who think they know C++.

share|improve this answer
+1 for "Very interesting for people who think they know C++." – Dima Nov 11 '11 at 20:22
+1 for suggesting K&R. – Mahmoud Hossam Nov 11 '11 at 20:48

C++ for Java Programmers. Haven't read it personally but it has decent ratings.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.