单项选择题

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

main()
( int i, s=1;
for(i=1; i<=3; i++)s*=fun();
printf("%d\n", s);

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

A) 0
B) 10
C) 30
D) 64
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的运行结果是( )。 #include<stdio.h> #include<string.h> main() char*s1= abDuj ; char*s2= ABdUG ; int t; t=strcmp(s1,s2); printf( %d ,t); A) 正数 B) 负数 C) 零 D) 不确定的值
单项选择题
以下程序(strcat函数用以连接两个字符串)运行后的输出结果是 #include<stdio.h> #include<string.h> main() char a[20]= ABCD OEFG 0 , b[]= IJK ; strcat(a, b); printf( %s n:, A);
A) ABCD\0FG\0IJK B) ABCDIJK C) IJK D) EFGIJK
相关试题
  • 在使用报表向导创建报表时,如果数据源包括...
  • 以下程序的功能是:将值为三位正整数的变量...
  • 以下程序的输出结果是______。 #in...
  • 以下程序的功能是从键盘输入若干学生的成绩...
  • 以下程序的输出结果是______。 #in...