以下程序的输出结果是
  #include<iostream.h>
  int f( )
   static int i=0;
   int s=1
   s+ =i; i++;
   return s;
  void main( )
   int i,a=0;
   for(i=0 ;i<5;i++)a+=f( );
   cout < < a;

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

以下程序的输出结果是
  #include<iostream.h>
  int f( )
   static int i=0;
   int s=1
   s+ =i; i++;
   return s;
  void main( )
   int i,a=0;
   for(i=0 ;i<5;i++)a+=f( );
   cout < < a;
A.20
B.24
C.25
D.15

以下程序的输出结果是  #include<iostream.h>  int f( )   static int i=0;   int s=1   s+ =i;

本题关键词:输出结果,竣工结算程序,结果,肝糖输出,输出浓度,程序,结果均,下果藤,出疹顺序,下出;

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