Discussion Locked

How to learn C?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the best way to learn C programming language, I have a book called " A Book on C" ?

7 replies

by gary_w

I would reccommend "Practical C Programming" from O'Reilly & Associates.

Just sit down and go through each chapter, doing the examples at the end.

Of course you could always take a class.

printf("Good luck!\n\nGary\n");

by lo

I haven't done C this way yet but did a "Teach Yourself VB in 21 Days". It took much longer than that but gave me the basics of what and how. There are similar for C.

I usually take a language reference manual for a new language and read it, cover to cover. Usually only read the first paragraph that gives an overview/description of what the statement does (skip the nitty gritty details unless it looks really interesting). This only takes a few days and will give you a warm and fuzzy later when you are trying to do something in real code that the is a solution. Scanning an index or statement listing will let you pick the correct statement (with a false start/memory or two).

Lastly, when you get past whatever you do to get you started, pick a simple problem, one that you could do in 2-4 weeks in whatever language you know and do it in C. I usually pick something that if/when I decide I don't want to do it any more, I can stop without impact but if/when I finish, it would be 'nice' to have. I spend a bit of time looking up how to in the manual and code examples but that is the purpose, no?

lo

This discussion is closed to new replies.