填空题
有以下函数
void prt(char ch,int n)
int i;
for(i=1;i<=n;i++)
printf(i%6!=0 "%c":"%c\n",ch);
执行调用语句prt(’*’,24);后,函数共输出了______行*号。
【参考答案】
4
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
函数fun的返回值是______。 fun(char *a,char *b) int num=0,n=0; while(*(a+num)! =’ 0’) num++; while(b[n]) *(a+num)=b[n];num++;n++; return num;
点击查看答案&解析
填空题
有以下程序: struct s int x,y; data[2]=10,100,20,200; main() struct s*p=data; printf( %d n ,++(p->x)); 程序运行后的输出结果是______。
点击查看答案&解析
相关试题
有以下程序: #include <stdio.h> m...
有以下程序: #include <stdio.h> m...
以下程序的输出结果是______。 #in...
设有以下定义和语句,则*(*(p+2)+...
函数my_cmp()的功能是比较字符串s和t的...