单选题 C语言
题号 #142842

有以下程序
int a=2;
int f(int n)
{ static int a=3; 
int t=0;
if(n%2){ static int a=4; t += a++; }
else { static int a=5; t += a++; }
return t+a++;
}
main()
{ int s=a, i;
for( i=0; i<3; i++) s+=f(i);
printf("%d\n", s);
}
程序运行后的输出结果是(   )。

进入在线模考

参考答案

C

答案解析

暂无解析

你可能感兴趣的试题

A.继续在后台运行  
B.继续在前台运行  
C.终止运行  
D.暂停运行
A.用鼠标拖动窗口中的任何部位  
B.用鼠标拖动窗口的边框  
C.用鼠标拖动窗口的控制按钮  
D.用鼠标拖动窗口的标题栏
A.打印当前窗口的内容  
B.打印屏幕内容  
C.复制屏幕到剪贴板  
D.复制当前窗口到剪贴板
找试题 · 找答案 · 找资料 在线模考