A-A+

以下程序的输出结果是______。 void fun() { static int a=0;

2022-08-12 18:11:21 问答库 阅读 197 次

问题详情

以下程序的输出结果是______。 void fun() { static int a=0; a+=2;printf("%d",a); } main() { int cc; for(cc=1;cc<4;cc++)fun(); printf("n"); }请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:246
246

考点:程序