![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
下面的程序用来统计文件中字符的个数。请填空。 include<stdio.h> main() {FILE *f
下面的程序用来统计文件中字符的个数。请填空。 include<stdio.h> main() {FILE *fP; long num=0; if((fp=fopen("fname.dat","r"))==NULL) { printf("Cant open file! \n");sxit(0);} while 【 】 { fgetc(fp);num++;} printr("num=%d\n",num); fclose (fp); }
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)