填空题
以下程序的功能是:通过函数func输入字符并统计输入字符的个数,输入时用字符@作为输入结束标志。请填空。
#include <stdio.h>
long ______;/*函数说明语句*/
main()
long a;
a=func();printf("n=%ld\n",a);
long func()
long b;
for(b=0;getchar()! =’@’;b++;);
retum b;
【参考答案】
func()
热门
试题
填空题
有以下程序: int f1(int x,int y) return x>yx:y; int f2(int x,int y) returnx>yy:x; main() int a=4,b=3,c=5,d=2,e,f,g; e=f2(f1(a,b),f1(c,d)); f=f1(f2(a,b),f2(c,d)); g=a+b+c+d-e-f; printf( %d,%d,%d n ,e,f,g); 程序运行后的输出结果是______。