-->
当前位置:首页 > 题库

单选题:Which line is **NOT** correct in the following program?

Luz5年前 (2021-05-10)题库822
Which line is **NOT** correct in the following program?
```
1. int main()
2. {
3. int a[3]={1};
4. int i;
5. scanf(“%d”,&a);
6. for(i=1;i<3;i++) a[0]=a[0]+a[i];
7. printf(“a[0]=%d\n”,a[0]);
8. return 0;
}
```
@[B](1)

A. 3
B. 5
C. 6
D. 7




A.3
B.5
C.6
D.7


答案:B