下面程序的输出结果是 ( )
func(int x)
static int a=2;
return(a+=x);
rnain( )
int b=2,c=4,d;
d=func(b) ;
d=func(c) ;
printf("%d/n",d) ;
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 15:39:10
免费下载:《单项选择》Word试卷
下面程序的输出结果是 ( )
func(int x)
static int a=2;
return(a+=x);
rnain( )
int b=2,c=4,d;
d=func(b) ;
d=func(c) ;
printf("%d/n",d) ;
A.4
B.6
C.8
D.12
本题关键词:输出结果,x果,X线检查程序,x果核,x果叶,面试程序,假X果穗,x果树皮,竣工结算程序,结果;