You are not logged in.

#1 2010-09-08 10:26:56

roeleman
Member
Registered: 2007-11-09
Posts: 46

programming in C tutorial

Hello,

does somebody know a good guide or book to learn programming in C under linux?  I never programmed in my life so it shoul start from zero.

Thanks in advance

Offline

#2 2010-09-08 10:31:43

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: programming in C tutorial

K & H - The C Programming Language

Offline

#3 2010-09-08 13:01:18

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: programming in C tutorial

jelly wrote:

K & H - The C Programming Language

Eh? you mean K & R?

Offline

#4 2010-09-08 13:30:34

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: programming in C tutorial

My favorite learning material for C is the comp.lang.c Frequently Asked Questions web site, but it might be better to read when you are an intermediate C programmer.

C is the same on every operating system. Is there something specific you want to learn about using C "under Linux"? Do you want to learn how to use a special library or API?

Offline

#5 2010-09-08 13:58:52

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: programming in C tutorial

Search the forum. Here's a link that could be useful

https://bbs.archlinux.org/viewtopic.php?id=102460


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2010-09-09 16:52:36

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: programming in C tutorial

Here's a link to my old C programming class "useful links" page.
lots of good stuff here for C on linux http://www.cs.montana.edu/courses/201/WebRefs.htm


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#7 2010-09-09 23:43:11

cmtptr
Member
Registered: 2008-09-01
Posts: 135

Re: programming in C tutorial

Berticus wrote:
jelly wrote:

K & H - The C Programming Language

Eh? you mean K & R?

I think he meant H & K, although I can't be sure because I haven't yet figured out why he thought that would help roeleman learn C.

Offline

#8 2010-09-11 02:01:25

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: programming in C tutorial

jelly wrote:

K & H - The C Programming Language

Its actually not a very good educational book in my opinion, but does cover (very vaguely) everything..

I have a 'C Primer Plus' back in the days when I went to school and its pretty decent. Once you get the basics down 'Advanced Linux Programming' from New Riders is an excellent read.

Offline

#9 2010-09-14 05:06:07

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: programming in C tutorial

T-Dawg wrote:
jelly wrote:

K & H - The C Programming Language

Its actually not a very good educational book in my opinion, but does cover (very vaguely) everything..

It's more like a crash course in C for systems programmers than an introduction to programming in C, as evidenced by the fact that formatted output, variables, arithmetic, comments, block structure, for and while loops, character input and output, operator precedence, if/else branches, arrays, functions, function prototypes, argument passing models, C strings, variable scope, and brief discussions of advanced topics like linkage, pointer values, and program structure all appear in the first chapter.  I wouldn't recommend it to a new programmer.  (I wouldn't recommend C to a new programmer.)  But K&R is pretty definitive for C, similarly to how the Camel is definitive for Perl.

Offline

#10 2010-09-22 06:23:09

apefish
Member
From: Vancouver
Registered: 2010-07-13
Posts: 47

Re: programming in C tutorial

Trent wrote:
T-Dawg wrote:
jelly wrote:

K & H - The C Programming Language

Its actually not a very good educational book in my opinion, but does cover (very vaguely) everything..

It's more like a crash course in C for systems programmers than an introduction to programming in C, as evidenced by the fact that formatted output, variables, arithmetic, comments, block structure, for and while loops, character input and output, operator precedence, if/else branches, arrays, functions, function prototypes, argument passing models, C strings, variable scope, and brief discussions of advanced topics like linkage, pointer values, and program structure all appear in the first chapter.  I wouldn't recommend it to a new programmer.  (I wouldn't recommend C to a new programmer.)  But K&R is pretty definitive for C, similarly to how the Camel is definitive for Perl.

IMO K&R is a great book. It was my introduction to C (as a beginner) and it never gave me any trouble. In fact I think it's the finest piece of technical writing I've ever read. I still use the reference in the back. Other than K&R I don't think it's worth getting any books on the subject, as there are so many tutorials and resources on the internet. Wikipedia is great for all the paradigms and data structures and stuff. Good luck roeleman!

Offline

#11 2010-09-22 10:28:03

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: programming in C tutorial

Offline

#12 2010-09-22 18:53:36

MTK358
Member
Registered: 2010-09-22
Posts: 9

Re: programming in C tutorial

Offline

Board footer

Powered by FluxBB