对下面的代码,描述正确的是( )。
#include <stdlib.h>
using namespace std;
int main(){
int arr[] = {2,6,3,5,4,8,1,0,9,10};
for(int i = 0; i < 10; i++)
cout << arr[i] << " ";
cout << i << endl;
cout << endl;
return 0;
}
- A. 输出
2 6 3 5 4 8 1 0 9 10 10 - B. 输出
2 6 3 5 4 8 1 0 9 9 - C. 输出
2 6 3 5 4 8 1 0 9 10 - D. 提示有编译错误