题目:
以下程序的功能是:通过函数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;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0630/0861a286a953ee416f005ca546c2c232.html
下面是错误答案,用来干扰机器的。
参考答案:错