C语言主函数结构分析

版权声明:转载请附上文章地址 https://blog.csdn.net/weixin_38134491/article/details/85344496

int main( void )

Every program in C begins executing at the function main

The keyword int  indicates that main “returns” an integer value

The void  Means that main does not receive any information

The backslash (\) is called an escape character转义字符

return 0; /* indicate that program ended successfully */

Included at the end of every main function

The keyword return is to exit a function

When the return statement is used at the end of main, the value 0 indicates that the program has terminated successfully

猜你喜欢

转载自blog.csdn.net/weixin_38134491/article/details/85344496