Mentor for C self study wanted
Bahman M.
b.movaqar at adempiere.org
Thu Oct 25 12:08:55 PDT 2007
On 2007-10-25 Bill Moran wrote:
> In response to Oliver Fromme <olli at lurza.secnetix.de>:
>
> > Harald Schmalzbauer wrote:
> > >
> > > #include <stdio.h>
> > >
> > > void main()
> >
> > That's not a C program. :-)
> >
> > The return value of the main function of a valid C program
> > must be int. And of course, your main function should
> > end with "return 0;" or "exit(0);" (the latter requires
> > "#include <stdlib.h>" at the top).
> >
> > By the way, I recommend you get a copy of the C standard
> > and use it for reference. You can buy a digital copy (PDF)
> > at http://webstore.ansi.org/ (Search for "9899-1999"),
> > it's $30. Alternatively ask Google for "C99 draft" to get
> > a free copy of a draft of the standard, which isn't very
> > different from the final standard.
> >
> > You can also buy a hardcopy of the standard (i.e. a book),
> > but it was ~ $300 last time I looked.
>
> If we're recommending books, I can't say enough good things
> about the Kernighan and Richie C book:
> http://www.amazon.com/C-Programming-Language-2nd/dp/0131103628/ref=pd_bbs_2/105-1904293-7155604?ie=UTF8&s=books&qid=1193326006&sr=1-2
>
No doubt the most valuable book on programming I've ever read. Not
only it teaches programming but also a style of thinking and designing.
--
Bahman Movaqar
You can't write poems about trees when the woods are full of policemen.
-Bertolt Brecht
More information about the freebsd-questions
mailing list