int anan[10]={1};
cout<<sizeof(anan)<<endl;
cout<<anan[1]<<endl;
40
1
int a[]={1,3,4,5,6,7};
int b[]={2,4,5,6,8,9};
cout<<sizeof(a[0])<<endl;
cout<<(sizeof(a))<<endl;
cout<<(sizeof(a)/sizeof(a[0]))<<endl;
4
24
6
char a[10];
能编译,运行;
char aa[10]={};不能编译;