下列有一行是错误的(每行程序前的数字表示行号),程序有错误的行数是( )1 include 2 void main( )3 {4 int a[3] = {2*3};5 int i, sum=0;6 for( i=0; i<3; i++ )7 {8 scanf("%d", a[i]);9 sum += a[i];10 }11 printf( "%d", sum );12 }
选项:
A:第3行有错误;
B:第8行有错误;
C:第9行有错误;
D:第11行有错误
选项:
A:第3行有错误;
B:第8行有错误;
C:第9行有错误;
D:第11行有错误
发布时间:2024-06-08 22:31:45