小编Sup*_*k94的帖子

当没有返回语句时,返回int类型返回语句的值

当没有返回语句时,int类型返回语句的返回值是什么

为什么?

int func()
{
 printf("Hello");
}

int func1()
{

}

void main()
{
 int s,p;

 s=func();
 p=func1();
 printf("%d %d", s, p);
}
Run Code Online (Sandbox Code Playgroud)

c return function

-5
推荐指数
1
解决办法
133
查看次数

标签 统计

c ×1

function ×1

return ×1