匿名返回值:只有数据类型如int,(int,int)

此时,函数体中要显示返回return  1,1  或return  a,b

 

 

命名返回值:既有返回值类型,又有返回值变量的名称.如:(res int)

此时,函数体中不用显示返回,如return就可以.

 

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案