选出给定C++代码运行结果的正确描述
#include <iostream>
using namespace std;
int main() {
int a[11] = {2,6,3,5,4,0,1,0,9,10};
for(int i = 9; i >= 0; i--)
a[i] = a[i] + a[i+1];
for(int i = 0; i <= 10; i++)
cout << a[i] << " ";
cout << endl;
return 0;
}
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析