填空题

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

【参考答案】

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

填空题
以下程序运行后输入:3,abcde<回车>,则输出结果是 【17】 。 #include<string.h> move(char *str,int n) char temp;int i; temp=str[n-1]; for(i=n-1;i>0;i--)str[i]=str[i-1]; str[0]=temp; main() char s[50];int n,i,z; scanf( %d,%s ,&n,s); z=strlen(s); for(i=1;i<=n;i++)move(s,z); printf( %s n ,s);
填空题
以下程序运行后的输出结果是 【14】 。 main() int i,j,a[][3]=1,2,3,4,5,6,7,8,9; for(i=0;i<3;i++) for(j=i+1;j<3;j++)a[j][i]=0; for(i=0;i<3;i++) for(j=0;j<3;j++)printf( %d ,a[i][j]); printf( n );
相关试题
  • 请在以下程序第一行的下划线处填写适当内容...
  • 已有定义如下: struct node int data...
  • 以下程序的功能是将字符串s中的数字字符放...