<a href='Http://hi.csdn.net/mymtom/profile/notebook/1.html' target='_blank'>标准上要求用int main(). 既然函数的返回类型是int就应该return一个整形值.
下面是C99标准上关于main的描述:
5.1.2.2.1 Program startup
1 The function called at program startup is named main. The implementation declares no
prototype for this function. It shall be defined with a return type of int and with no
parameters:
int main(void) { /* ... */ }
or with two parameters (referred to here as argc and argv, though any names may be
used, as they are local to the function in which they are declared):
int main(int argc, char *argv[]) { /* ... */ }
or equivalent;8) or in some other implementation-defined manner.</a>