填空题
以下程序运行后的输出结果是
【12】
。
#include <stdio.h>
msin()
int i,n[]=0,0,0,0,0;
for(i=1;i<=4;i++)
n[i]=n[i-1]*2+1;
printf("%d",n[i]);
【参考答案】
1 3 7 15
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是将字符串s中的数字字符放入d数组中,最后输出d中的字符串。 例如,输入字符串:abc123edf456gh,执行程序后输出:123456。请填空。 #include <stdio.h> #include <ctype.h> main() char s[80],d[80]; int i,j; gets(s); for(i=j=0;s[i]! =’ 0’;i++) if( 【9】 ) d[j]=s[i]; j++; d[j]=’ 0’; puts(d);
点击查看答案&解析
填空题
以下程序运行后的输出结果是 【8】 。 #include <stdio.h> main() int a=1,b=3,c=5; if (c=a+b) printf( yes n ); else printf( no n );
点击查看答案&解析
相关试题
以下程序运行后的输出结果是 【20】 。...
以下程序的功能是调用函数fun计算:m=1-...
以下程序运行后的输出结果是 【19】 。...
请在以下程序第一行的下划线处填写适当内容...
以下程序运行后的输出结果是 【17】 。...