对下面的代码,描述正确的是( )。
#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; }
输出 2 6 3 5 4 8 1 0 9 10 10
2 6 3 5 4 8 1 0 9 10 10
输出 2 6 3 5 4 8 1 0 9 9
2 6 3 5 4 8 1 0 9 9
输出 2 6 3 5 4 8 1 0 9 10
2 6 3 5 4 8 1 0 9 10
提示有编译错误