K
Keith Thompson
Ian Collins said:pete wrote: [...]Section 5.1.2.2.1 of the standard does.I don't see void main() as being as more or less correct
on freestanding implementations which define void main(),
than it is on hosted implementations which define void main().
It says that main shall be defined as 'int main(void)', or as
'int main(int argc, char *argv[])', "or in some other
implementation-defined manner".
So 'void main(void)' is "correct" on an implementation (either hosted
for freestanding) that supports it.
By contrast, 'int main(void)' is correct on any hosted implementation
(and may or may not be correct on a given freestanding
implementation).
I was going to say which one of you I agree with, but the disagreement
is over words, not over what those words refer to, so I won't bother.