View Single Post
  #6 (permalink)  
Old August 5th, 2003, 05:08 PM
merediths merediths is offline
Authorized User
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths


 Fascinating reading indeed though the second link only seems to cover void as a return type. I confess, I didn't drill down very far into the first link, but I was under the impression (and I haven't checked this in quite some time) that according to the [C++] standard

int func();

  is equivlant to

int func(void);

  due to C++'s stronger type-checking (which is one of those little compatibilty breakers with standard C ) and that given that

int main(void)

  *is* legal syntax and

int main()

   is equivlant, would it not too be legal? hrm....this is why we have linker flags to sepcify entry points

Reply With Quote