Beginner C tutorial

Hello all,

I am a noob at C (not so much in other languages) but I wanted to work on my skills in hopes of someday contributing to BSD. I was told that C is probably a better way to go vs. C++ for OS development (correct me if I am wrong)

I wanted to know if anyone knew of or recommended anything as far as reading material and especially online tutorials as well as programming tasks to practice (tutorials and assignments). When I googled for tutorials I became overwhelmed with primarily C++ tutorials, and I also wanted to ask people in this thread, as I would prefer opinions of people reading and posting on the BSD forums vs some random guy/gal on a blog.
 
danger@ said:

I'll second the K&R classic. I needed to learn C quickly for a project, and working through that book's examples and exercises was a great help.

I recommend hanging on to the example programs, and writing your own test programs that each perform one simple task (i.e. to demonstrate how a particular language feature works). That'll be very useful as a reference later when you're working on a big program.
 
I'll second the K&R classic
is the best C Books for ever, but if you havn't any practice in a structural Language such as C
I am a noob at C (not so much in other languages)
,
it's better to start with C How to Programme - Deitel -- simultaneously keep an eye on file:///usr/share/doc/en_US.ISO8859-1/books/developers-handbook/index.html ---.
The former will give you a comprehensive knowledge about Structural progrmming, The Latter shall adopt those infos with FreeBSD/GCC.
The Example/Sample Testing/Reviewing methods is just practical for scripting languages such as perl/php --- although, just for introducing language and Hello World practices ---, and it will become more confusing progressively.
 
Yeah it seems that I will take everyone's advice and get that book as well. Also has excellent reviews everywhere. ;)
 
Hate to revive an old thread, but no one mentioned the O'reilly book, C in a nutshell. Though it is a reference book, it does have an introduction to C. I have found it an invaluable resource in my daily programming. It contains information on nearly every function you'll use over time (the C library) as well as information on things that some C books won't cover. You'll find help on gcc, creating and using makefiles (also a great reference for sh scripting) and debugging with gdb.

This book is ridiculously thorough, up to date with C standards and will never collect dust on a bookshelf.
 
Eponasoft said:
The K&R book is ok, if not a bit dated and biased.

Biased? Biased to what?
Good clean correct & sensible code on a good clean & sensible OS [read unix/bsd] perchance?
 
Also me too i want to learn C but is so much difficult for me :(
I want to learn for 2 reasons!!!
1)Because i really want to help bsd development
2)Because if i made it i want to create my own operating system based on bsd-solaris!!!
If i will not made it i will keep the first reason because i am really full in love with freebsd!!!! :)
 
I also recommend the K & R and a C reference book, but if you can read
Portuguese this is good "Introdução à Programação Usando C"
ISBN: 978-972-722-524-8 "and" Programação Avançada Usando C "
ISBN: 978-972-722-546-0. Search the Web for n1124.pdf the standard C
also the standard Unix System V3 (susv3.tar.gz) as a reference as well.
I find it very useful to learn the theory of things and recommend:
http://infolab.stanford.edu/ Ullman ~ / ialc.html
"Introduction to the Theory of Automata, Languages and Computation" and "Art of Computer Programming." IATLC The first will allow you to read and write better code in any language
the second shows ACP techniques that may be useful in different senarios.
 
Just use site download script(or app, havent used one in a while cant recall what I used), it will save all child .html files and images to local folder.
 
Back
Top