PDA

View Full Version : Programming in C?



dietwaterrr
09-24-2008, 03:13 PM
Can anyone recommend me a real easy to understand C programming tutorial? I know basic programming in C and other languages, but I would really like to understand C and re-study programming concept again. Thanks

nfm
09-24-2008, 03:44 PM
C is a nice, small, fast and powerful (dangerous if used improperly) with ability to use bitwise operations (you can program hardware or use registers), it can be mastered in and out in few years. Pick up a GNU/Linux distro and head over http://ubuntuforums.org/showpost.php?p=2045086, I don't know better way to start. There's also totally awesome video tutorial done by VTC - C Programming (by Mark Virtue), others just suck badly and are very general. If you learn C in and out, then you still will not know much about programming, you need to learn about hardware, how to read manuals and make uses of headers (.h files), libraries, algorithms, data structures, calculus etc.

Slovnaft
09-25-2008, 04:55 AM
imo C is such a basic, elemental language that the best way to learn it (and a lot of things for that matter) is to go to the source; pick up Kerninghan/Ritchie "the C programming language", that is, if they still sell it in major book stores =].
I guess i'd have to disagree with nfm, i'd say C is a great language to start with. It can be very simple and brute force, but can also teach you the elegance, complexity, and attention to structure that becomes useful as you develop as a coder. We use dusty languages like C and fortran a lot in my theoretical physics research, as it can make complex, pattern-oriented math theory easier to manipulate and understand, and is very resource friendly.
C is a great base for any coder. Hell, next summer you can pick up perl if the mood strikes ;]

UNIXgod
09-25-2008, 10:48 AM
C Programming Language Kerninghan/Ritchie is a must for anyone programming C. Great read and reference. Also considered one of the gold standard in technical writing as well as one of the most successful technical books ever written.

For beginners C Primer Plus (Prata) is a great place to start.

jigit
09-25-2008, 08:39 PM
C Programming Language Kerninghan/Ritchie is very good book about C!
dietwaterrr: read man's.

Speederlander
09-26-2008, 06:53 PM
Go here:
basic:
http://www.eskimo.com/~scs/cclass/notes/top.html
more advanced:
http://www.eskimo.com/~scs/cclass/int/top.html
basic exercises:
http://www.eskimo.com/~scs/cclass/asgn.beg/index.html
more advanced exercises:
http://www.eskimo.com/~scs/cclass/asgn.int/index.html
This is very good once you have general familiarity:
http://c-faq.com/

I say skip K&R, there are better resources that have come out over the years since K&R. Go to K&R later if you feel you need the exposure for some reason. Better wading through a good book on C algorithms once you have the basics of the language.

Slovnaft
09-27-2008, 08:38 AM
^^K&R IS the basic language from the bottom up...not quite sure what you mean here?
I would advise against learning C off the internet...

Speederlander
09-27-2008, 11:40 AM
^^K&R IS the basic language from the bottom up...not quite sure what you mean here?
I would advise against learning C off the internet...

K&R doesn't reflect the latest C.

And you're advising against Steve Summit? The guy basically wrote the usenet c.faq... :shrug:
He's one of the most well known C people out there.
I have a bookshelf full of C books. There are hundreds of reasonable C books, K&R is simply one of them and is dated. Just because it came first doesn't mean it's the best.

Summit is perfect if you are starting out.

But whatever, by all means do as you will.

dietwaterrr
09-27-2008, 02:09 PM
thanks for the recommendations. ill probably get the book and read the site at the same time. thanks a lot !

Speederlander
09-27-2008, 06:07 PM
thanks for the recommendations. ill probably get the book and read the site at the same time. thanks a lot !

If you go K&R use these notes on the book from the Summit site:
http://www.eskimo.com/~scs/cclass/krnotes/top.html