填空题

以下程序运行后的输出结果是______。
fun(int x)
if(x/2>0) fun(x/2);
printf("%d " ,x);
main()
fun(6);

【参考答案】

1 3 6
<上一题 目录 下一题>
热门 试题

填空题
设函数findbig已定义为求3个数中的最大值。以下程序将利用函数指针调用findbig函数。请填空。 main() int findbig(int,int,int); int (*f) () ,x,y, z,big; f=______; scanf( %d%d%d ,&x,&y,&z: big=(*f)(x,y,Z); printf( big=%d n ,big);
填空题
以下程序运行后的输出结果是______。 #include <string.h> void fun(char *s,int p,int k) int i; for(i=p;i<k-1;i++) s[i]=s[i+2]; main() char s[]= abcdefg ; fun(s,3,strlen(s)); puts(s);
相关试题
  • 以下程序的功能是将字符串s中的数字字符放...
  • 以下程序的运行结果是______。 # ...
  • 函数ssbc叩()的功能是对两个字符申进行比...