Re: C coding guidelines
- From: Flash Gordon <smap@xxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Aug 2009 00:23:57 +0100
Nick Keighley wrote:
On 26 Aug, 13:12, Walter Banks <wal...@xxxxxxxxxxxxx> wrote:arnuld wrote:In Indian Education system, in Punjab School Education Board (where IIf you are writing code for embedded systems main will never return and it is appropriate to write void main (void). The C standard says that main will return an int.
did my graduation) or Kurukshetra University from where my friend did
his Masters or in around 10 Engg. colleges from where my other friends
(old classmates) did their Bachelors of Technology and Bachelors of
Engineering, at *all* of those places me and they were taught to write
void main(). It was CLC who taught me, very first time in my life, to
use int main(void).
not necessarily. There may be no main at all in that case!
Or the implementation might document that main returns an int (I believe the TMS320C25 documentation used to, in fact it used to include a copy of K&R2, which was the first copy of it I obtained!
--
Flash Gordon
.
- References:
- C coding guidelines
- From: arnuld
- Re: C coding guidelines
- From: Nick Keighley
- Re: C coding guidelines
- From: arnuld
- Re: C coding guidelines
- From: Walter Banks
- Re: C coding guidelines
- From: Nick Keighley
- C coding guidelines
- Prev by Date: Re: char as string
- Next by Date: Re: tree errors
- Previous by thread: Re: C coding guidelines
- Next by thread: Re: C coding guidelines
- Index(es):
Relevant Pages
|