【问题标题】:What's the difference between "int a" and "a" in void functions? [closed]void 函数中的“int a”和“a”有什么区别? [关闭]
【发布时间】:2022-06-16 21:21:31
【问题描述】:

所以我编写了两个不同的代码,目标相同,但差异非常小,但我无法理解为什么代码 1 与代码 2 的工作方式不同。 区别:功能编号1的代码输出为3(与输入相同),而功能编号2的代码输出为2。我知道输入不同,但为什么功能编号2没有给出相同的输出与函数 number1 相同的输入?谢谢你,对不起我的英语不好。 function number1 function number 2

【问题讨论】:

标签: c++ function


猜你喜欢
  • 2021-05-04
  • 2020-12-27
  • 2021-09-17
  • 2020-05-05
  • 2010-10-11
  • 1970-01-01
  • 2020-07-15
  • 1970-01-01
  • 2014-11-05
相关资源
最近更新 更多