题目内容

下面的程序用来统计文件中字符的个数。请填空。 # include<stdio.h> main( ) FILE *fP; long num=0; if( (fp=fopen("fname.dat","r"))==NULL) printf("Can’t open file! \n");sxit(0); while 【20】 fgetc(fp);num++; printr("num=%d\n",num); fclose (fp);

查看答案
更多问题

What did the woman really order

A. Eggs, bacon and coffee.
B. Newspaper.
C. Tea.

Who on earth made the mistake

A. The woman.
B. The hotel attendant.
C. Both of them.

What should the students bring with them to the exam

A. [A] A final copy of the research project.
B. Copies of the mid-term.
C. A few pens.

How can she find the bridge

A. [A] Go down the street and turn left.
B. Go down the street and turn right.
C. Go straight forward along this street.

答案查题题库