有以下程序
#include <stdio.h>
Main()
{ FILE *fp;
Int a[10]={1,2,3},i,n;
Fp=fopen("d1.dat","w");
For(i=0;i<3;i++)
Fprintf(fp,"%d",a[i]);
Fprintf(fp,"\n");
Fclose(fp);
Fp=fopen("d1.dat","r");
Fscanf(fp,"%d",&n);
Fclose(fp);
Printf("%d\n",n);
}
程序的运行结果是______。
A.12300 B.123 C.1 D.321正确答案B