对于内置变量的自动初始化 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include<stdio.h>#define CONST 100 int *p1; int a[2]; int b; static int c; main() { int d; static int e; int f[2]; int *p2; printf("CONST=%d\n",CONST); printf("a[0]=%d\n",a[0]); //printf("*p1=%d\n",*p1); printf("b=%d\n",b); printf("c=%d\n",c); printf("d=%d\n",d); printf("e=%d\n",e); printf("f[0]=%d\n",f[0]); printf("*p2=%d\n",*p2); } 输出: