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

PROGRAMMING:Initialization of one dimensional array

Luz5年前 (2021-05-10)题库533
```
Analyze the following code to understand the array initialization operation.
#include
int main(){
int a[10]={},i;
int b[10]={1,2,3,4};
int c[]={1,2,3,4,5,6,7,8,9,10};
Printf ("array A:");
for(i=0; i<10; i++) printf("%d ",a[i]);
printf(".\n");
Printf ("array B:");
for(i=0; i<10; i++) printf("%d ",b[i]);
printf(".\n");
Printf ("array C:");
for(i=0; i<10; i++) printf("%d ",c[i]);
printf(".\n");
return 0;
}
```
###Input example:
```in
```
###Output example:
```out
Array A: 0
Array B: 1234000
Array C: 12345678910
```







answer:If there is no answer, please comment