河南成教 / C语言程序设计
正确率:100%
5、有两个整型变量dog和cat,若要从磁盘文件把数据读到其中,正确的形式是______
A. fscanf(dog ,2,1,fp);
B. fscanf(fp,"%d%d",&dog ,&cat);
C. fscanf(dog ,cat,2,1,fp);
D. fscanf(fp,"%d",&dog ,&cat);
A. fscanf(dog ,2,1,fp);
B. fscanf(fp,"%d%d",&dog ,&cat);
C. fscanf(dog ,cat,2,1,fp);
D. fscanf(fp,"%d",&dog ,&cat);
参考答案:
佳题速递: