Re: Help a friend with some c code

From: Richard Heathfield (dontmail_at_address.co.uk.invalid)
Date: 02/14/04

  • Next message: nospam_at_nospam.com: "Displaying the names of enum variables"
    Date: Sat, 14 Feb 2004 20:24:34 +0000 (UTC)
    
    

    Paul F. Johnson wrote:

    > Arthur J. O'Dwyer did utter the following words of wisdom:
    >

    <snip>

    >> Oh, and one more thing:
    >>
    >> return 0;
    >
    > Nope. C99 and the C++ standards are both happy without return 0 - if it's
    > missing, it's implicitly added in.

    Just because the language provides a feature, that doesn't mean you have to
    use it. An explicit return value shows good style.

    -- 
    Richard Heathfield : binary@eton.powernet.co.uk
    "Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
    C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
    K&R answers, C books, etc: http://users.powernet.co.uk/eton
    

  • Next message: nospam_at_nospam.com: "Displaying the names of enum variables"

    Relevant Pages

    • Re: Why python doesnt use syntax like function(,,x) for default parameters?
      ... I badly need this feature in embedded python app (for ... compatibility with other language that uses such syntax) and might ... I think you would find it hard to implement exactly that in Python. ... a_func(missing, missing, 3) ...
      (comp.lang.python)
    • Re: Host association in interface
      ... >Also, the committee is doing language design, rather than standardizing ... if there's enough demand or the feature solves a problem ... vendors have been known to implement the feature ...
      (comp.lang.fortran)
    • Re: Gender in language
      ... John Flynn wrote: ... language must have that feature. ...
      (sci.lang)
    • Re: C++, C# or Java.
      ... And you're missing the point. ... Just because a language has a ... the feature to write obscure code. ... I would go for user-defined operators, ...
      (comp.lang.java.programmer)
    • Re: Gender in language
      ... language must have that feature. ...
      (sci.lang)

    Loading