1.初始化数组时,未使用静态存储。 int a[3]={0,1,2}; 这样初始化数组是不对的。 C语言规定只有静态存储(static)数组和外部存储(exterm)数组才能初始化。应改为: static int a[3]={0,1,2}; 2.