Re: Help a friend with some c code
From: Richard Heathfield (dontmail_at_address.co.uk.invalid)
Date: 02/14/04
- Previous message: Jason: "c++ compiler error"
- In reply to: Paul F. Johnson: "Re: Help a friend with some c code"
- Next in thread: Jeffrey Turner: "Re: Help a friend with some c code"
- Reply: Jeffrey Turner: "Re: Help a friend with some c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Jason: "c++ compiler error"
- In reply to: Paul F. Johnson: "Re: Help a friend with some c code"
- Next in thread: Jeffrey Turner: "Re: Help a friend with some c code"
- Reply: Jeffrey Turner: "Re: Help a friend with some c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading