下列有一行是错误的(每行程序前的数字表示行号) 程序有错误的行数是() 1 include <stdio.h>
已帮助 人
下列有一行是错误的(每行程序前的数字表示行号),程序有错误的行数是() 1 include <stdio.h> 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("%dn", sum ); 12 }
A.第8行有错误
B.第3行有错误
C.第9行有错误
D.第11行有错误

回答
共1条回复-
D
