#include <stdio.h>
#include
<stdlib.h>

void foo(void)
{
printf(
"into the foo function\n");
return;//结束子函数调用,返回主函数
printf("out the foo function\n");
}

int main()
{
foo();
printf(
"Hello world!\n");
return 0;
}

运行结果:

C语言  return没有返回值.

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2021-08-16
  • 2022-01-08
  • 2022-12-23
  • 2022-01-21
  • 2022-02-28
  • 2022-12-23
相关资源
相似解决方案