单项选择题
以下程序的输出结果是( )。
#include <stdio.h>
int fan(int);
main()
int w=5;
fun(w); printf("\n");
fun(int k)
if(k>0) fun(k-1);
printf("%d",k);
A.5 4 3 2 1
B.0 1 2 3 4 5
C.1 2 3 4 5
D.5 4 3 2 1 0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
请读程序: #include <stdio.h> #define SUB(X,Y) (X)*Y main() int a=3,b=4; printf( %d n ,SUB(a++,b++)); 上面程序的输出结果是( )。
A.12
B.15
C.16
D.20
点击查看答案&解析
单项选择题
请读程序: #include <stdio.h> #include <string.h> main() char *s1= AbCdEf , *s2= aB ; s1++; s2++; printf( %d n ,strcmp(s1,s2)); 上面程序的输出结果是( )。
A.正数
B.负数
C.零
D.不确定的值
点击查看答案&解析
相关试题
有以下程序: #include <stdio.h> m...
请选出以下程序的输出结果( )。 #incl...
请读程序: #include <stdio.h> fun...
读程序: #include <stdio.h> f(in...
已知字符0的ASCII码为十六进制的30,现...