单项选择题
以下程序的输出结果是
fun( char p[][10])
int n=0,i;
for(i=0;i<7;i++)
if(p[i][0]=='T') n++;
return n;
main()
char str[][10]="Mon","Tue","Wed","Thu","Fri","Sat","Sun";
printf("%d\n",fun(str));
A、 1
B、 2
C、 3
D、 0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include <stdio.h> void fun(int p) int d=2; p=d++; printf( %d ,p); main() int a=1; fun(a);pnntf( %d n ,a); 程序运行后的输出结果是()
A、 32
B、 12
C、 21
D、 22
点击查看答案&解析
单项选择题
下面程序由两个源程序文件t4.h和t4.c组成,程序编译运行的结果是t4.h的源程序为: #define N 10 #define f2(x)(x*N) t4.c的源程序为: #include <stdio.h> #define M 8 #define f(x)((x)*M) #include t4.h main() int i,j; i=f(1+1);j=f2(1+1) printf( %d%d n ,i,j);
A、 920
B、 1611
C、 911
D、 1610
点击查看答案&解析
相关试题
有以下程序: #include <stdio.h> m...
有以下程序: #include <stdio.h> m...
以下程序的输出结果是______。 #in...
设有以下定义和语句,则*(*(p+2)+...
函数my_cmp()的功能是比较字符串s和t的...