填空题
以下程序的功能是:通过函数func输入字符并统计输入字符的个数。输入时用字符@作为输入结束标志。请填空。
#include<stdio.h>
long
/* 函数说明语句 */
main( )
long n;
n=func( );printf("n=%1d\\n",n);
long func( )
long m;
for(m=0;getchar( )!=’@’;
);
return m;
【参考答案】
func()
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
下列程序运行后的输出结果是______。 #include<stdio.h> main() char s[20]; scanf( %s ,s); printf( %s ,s); 运行程序,输入HOW ARE YOU。
点击查看答案&解析
填空题
请将下列程序中的函数声明语句补充完整。 #include<stdio.h> int______; main() int x,y(*p)( ); scanf( %d%d ,&x,&y); p=max; printf( %d n ,(*p)(x,y)); mt max(int a,int b) return(a>ba:b);
点击查看答案&解析
相关试题
m++
下列程序的输出结果是______。 main...
在宏定义#define PI 3.14159中,...