c语言中使用int main,那么其他的函数必须要有返回值吗
5条回答 默认 最新
threenewbee 2019-12-09 15:56关注不一定需要。比如
#include <stdio.h> void show() { printf("hello world"); } int main() { show(); return 0; }这么写没毛病
本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用
不一定需要。比如
#include <stdio.h>
void show()
{
printf("hello world");
}
int main()
{
show();
return 0;
}
这么写没毛病