First basic program
Samuel T. Santos
soujavatambem@uol.com.br
Tue Feb 25 00:36:00 GMT 2003
ah...
Well... in Visual C++ the standard is int I think...
but its I learn in the college...
Em Seg, 2003-02-24 às 17:56, LLeweLLyn Reese escreveu:
> bjorn rohde jensen <bjensen@fastmail.fm> writes:
>
> > Hi there,
> >
> > Opinions differ,
>
> The opinions of the C (89,95,99) and C++ standards have always been
> the same: main must return int.
>
> 'void main()' first came out of Microsoft before the first C standard
> was finalized in 1988. Why it continues to come out of Microsoft
> is beyond me; perhaps their coding standards are still in the
> 80s. :-)
>
> > but it has always been my understanding
> > that main should be declared as returning int:) gcc seems
> > to think so too.
>
> Correct.
>
> [Other correcct stuff about a.out snipped.]
More information about the Gcc-help
mailing list