return value of 59>>main

Source: Internet
Author: User

int main ()

An int that represents the return value in C, or a return value that is not explicitly given, the default is int; () means that any arguments are accepted, and main (void) indicates that no arguments are accepted. Main (), int main (), main (void)//c89 available

The return value must be explicitly given in C + +, and he does not have a default return value; () indicates that no arguments are accepted. int main (int argc, char *argv[]);

void Main ()

Indicates that no value is returned. This is not defined in both C and C + +, but some compilers support this format. The return value of main is int.

Return statement

When the program does not give this statement, some compilers automatically add it.

In the latest C99 standard, only the following two definitions are correct:
int main (void)
int main (int argc, char *argv[])

The following two types of main functions are defined in c++98:
int main ()
int main (int argc, char *argv[])

return value of 59>>main

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.