Re: [SLUG] Wanting to learn C - book suggestions? (correction)

From: Dylan Hardison (dylanwh@gmail.com)
Date: Fri Mar 11 2005 - 16:52:21 EST


On Fri, 11 Mar 2005 08:23:43 -0800 (PST), perthie <perthie@yahoo.com> wrote:
>
> > > * The return type (int) should be specified.
> >
> > the return type if unspecified is assumed to be int. its good
> > programming practice to specify the return type, but its not required
> > or pedantically incorrect according to ANSI/ISO.
> >
>
> oops! the standard requires an explicit return, but many compilers do
> not. my bad.
>
And C99 is stricter, which is what I use for anything serious. :)
Actually, I use gcc's -std=gnu99, because I use some GCC-only features.
(I can always autoconfiscate them out, if I needed to, but GCC runs
everywhere I care about).
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:33:26 EDT