First off, assuming you are looking for something to help with UE4 development is the basis of my response. General coding outside of this, especially if working in a team would be in that future, may require quite a different approach. C programming as mentioned above seems recommended a lot from my research, meaning to get this myself soon but so far I’ve gone through: http://www.amazon.com/Primer-Plus-6th-Developers-Library/dp/0321776402/ref=sr_1_2?s=books&ie=UTF8&qid=1414433621&sr=1-2 plus some various cookbook style titles.
IMHO, if the book gets you coding then it’s fine. Consider mixing up between the beginner style books and the standard reference material. Sometimes you just need a quick primer and other times you need some real in depth information, and I don’t think there is anything wrong with having both. Much of the examples in these books don’t translate directly into UE4 anyway because here you’re attaching code to an existing system, not coding some hello world text output from scratch. So reading tutorials, demo projects, combined with several styles of reference material (beginner style and core reference material) may result in the most rewarding outcomes. Mastering the language will come with time, but it might be nice to make a few games along the way