有以下程序
#include<stdio.h>
int fun( )

static int x=1;
x+=1;
return x;

main( )

int i,s=1;
for(i=1;i<=5;i++)s+=fun( );
printf("%d/n",s);

程序运行后的输出结果是______。

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 14:12:46 免费下载:《简单单选》Word试卷

有以下程序
#include<stdio.h>
int fun( )

static int x=1;
x+=1;
return x;

main( )

int i,s=1;
for(i=1;i<=5;i++)s+=fun( );
printf("%d/n",s);

程序运行后的输出结果是______。
A.21
B.11
C.6
D.120

有以下程序  #include<stdio.h>  int fun( )     static int x=1;   x+=1;   return x;

本题关键词:程序,有序镜检,大腿以下或膝以下肌肉瘫痪,工程施工程序,复苏程序,工作程序,建设程序,程序变更,程序冲突,点火程序;

微信扫码获取答案解析
下载APP查看答案解析