下列程序运行后的输出结果是int c=1;main(){ static int a=5;int b=6;printf("a=%d,b=%d,c=%d\n",a,b,c);func();printf("a=%d,b=%d,c=%d\n",a,b,c);func();}func(){ static int a=4;int b=10;a+=2;c+=10;b+=c;printf("a=%d,b=%d,c=%d\n",a,b,c);}
A.
a=5,b=6,c=1 a=6,b=21,c=11 a=5,b=6,c=11 a=8,b=31,c=21
B.
a=5,b=6,c=11 a=5,b=21,c=11 a=5,b=6,c=11 a=8,b=31,c=21
C.
a=5,b=6,c=1 a=5,b=21,c=11 a=5,b=6,c=11 a=8,b=31,c=21
D.
a=5,b=6,c=1 a=6,b=21,c=11 a=5,b=6,c=11 a=5,b=31,c=21