这道题意图是什么?
#include <stdio.h>
int main()
{
int d;
int count = 0;
FILE *fp = NULL;
fp = fopen("data.txt", "r");
if( fp != NULL ){
printf("open file ok\n");
while( !feof(fp) ){
printf("enter loop\n");
fscanf(fp, "%d", &d);
count++;
}
}else{
printf("file open failed!\n");
return -1;
}
fclose( fp );
printf("count = %d\n", count );
return 0;
}
文件的内容为12345,写出语句的执行结果。