狗屁不通的“视频专辑:零基础学习C语言(小甲鱼版)”(2) 评论 20楼
在C语言的历史上,ISO一共有过3个C标准,相关条款如下:
The function called at propram startup is named main .The implementation declares no prototype for this function. It can be defined 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 tunction in which they are declared)
int main(int argc, char *argv[]) { /*. . . */ }
If they are defined,the parameters to the main function shall obey the following constraints
……
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;9) or in some other implementation-defined manner.
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;10) or in some other implementation-defined manner.
“屌丝水平也敢在这大放厥词,简直逗”
这句话说的真TMD的好!“让我呵呵一笑”。傻B并不难得,难得的是傻B竟然敢于装B!