A-A+

以下程序的输出结果是【 】。 void fun() { static int a; a+=2

2022-08-12 18:54:53 问答库 阅读 197 次

问题详情

以下程序的输出结果是【 】。 void fun() { static int a; a+=2; printf("%d",a); } main() { int cc; for(cc=1;cc<=4;cc++)fun(); printf("n"); }


请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:2 4 6 8
2468

考点:程序