#include <stdio.h>
int main()
{
int arrFirst[3] = {1,2,3};
int arrSecond[] = {4 ,5, 6};
int arrThird[3];
arrThird[0] = 7;
arrThird[1] = 8;
arrThird[2] = 9;
printf("%d\n", arrFirst[1]);
printf("%d\n", arrSecond[1]);
printf("%d\n", arrThird[1]);
return 0;
}
int arrFirst[3] = {1,2,3};
int arrSecond[] = {4 ,5, 6};
这两句里面的构成元素之间相隔的“,”应该是英文的,不是中文的。我改了以后就可以成功运行了,你试试