I have been developing in Perl and Java for the past five years and now I decided it was time to learn the basics. I know all the theory behind pointers and malloc() and free() but I've never done anything in C.
You want to do that just for the heck of it? Or is there a profession related reason?
alas I didn't answer your question.
You'll have trouble finding more practice than in the K&R book. It has a very comprehensive set of exercises that you should really try working through. I believe that there are answer keys that are available for purchase, so you can see and correct mistakes. Although I already knew C when I picked this book up at the suggestion of a supervisor, I found it to be immensely helpful in getting a better grasp on the language.
> Do you know of any good books that teach C? Something
One of my favorite C books after K&R is "Expert C Programming , Deep C Secrets" by Peter van der Linden. It covers some of the stranger things in greater detail....
More suggestions in the "Pointers on Pointers" thread from a few months back:
- former car owner in Queens
> You'll have trouble finding more practice than in the K&R book.
The Iron Fisted Hotdog and Pretzel Baron of Fulton County
I simply like it! The first time I read it, I felt joyful as my lecturer recommended Deitel book which killed my appetite.
Richard Sunarto Yu
For all its faults, I still highly recommend the K&R book. I'd also pick up something a little more modern though, maybe C Primer Plus?
I also like the K&R books. There are some good tutorials on the web as well. Of course, nothing will work better than actually downloading some good code and reading it.
Also go download and use the C interpreter @
I recommend C for Dummies and I think you are correct in wanting to learn C, even though you may never need it. It's hard to really make sense out of Perl or Java without knowing exactly what they evolved from.
The Real PC
Fog Creek Home