第20522题 单选题
以下C++代码执行后的输出结果是?
1 int foo(float *f)
2 {
3  return int(*f*2);
4 }
5
6 int main()
7 {
8  float fnum[10]={1.1};
9  fnum[1]=foo(fnum);
10  cout << fnum[0]+fnum[1] << endl;
11
12  cout << endl;
13  return 0;
14 }
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析