I am a PHP developer, and now I want to learn C for a couple of reasons.
- I lack knowledge in Java, as well as data structures and algorithms.
- PHP is written in C.
The most important thing is the first reason. I don’t want to get deep into C, but at least I could understand what C programs are doing. Does anyone have any good idea how I should proceed? Thanks!
That’s probably the wrong approach. First learn the basic theory behind programming which is algorithms and datastructures. These are language neutral.
Than try to learn a language and its syntax to write your algorithms. To answer your question, a good book for C is C in a Nutshell but it DOES NOT teach you the basics of programming.
And then there is still the book The C Programming Language by Kernighan&Ritchie, who invented C.