int main() v/s int main (void)

Posted by yCalleecharan on Stack Overflow See other posts from Stack Overflow or by yCalleecharan
Published on 2010-04-05T09:43:19Z Indexed on 2010/04/05 9:53 UTC
Read the original article Hit count: 510

Filed under:
|
|
|

Hi, In C, what's the difference between:

int main() {

   return 0;
}

and

int main(void) {

   return 0;
}

Thanks a lot...

Update: If main is not called recursively, then main() is the right way to go?

© Stack Overflow or respective owner

Related posts about main

Related posts about void