Branko Čibej <br...@wandisco.com> writes:

> "int main(void)" is not equivalent to "int main()" in C; it is in C++.

These are compatible

  int foo(void);
  int foo(){...}

however main is special so I suppose 'int main(){...}' might be
compatible but not equivalent, or I suppose compatiblity may be
irrelevant and it may simply be not equivalent.  I find it hard to
believe the standard intended that distinction particularly since it
uses 'int main(){...}' in examples.  I think it is intended to be
equivalent.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Reply via email to