题目内容
下列程序的输出结果是( )。#include void main(){FILE *fp; int i, k=0, n=0;fp = fopen(“d1.dat”, “w”);for( i=1; i<4; i++ ) fprintf( fp, “%d”, i);fclose(fp);fp = fopen(“d1.dat”, “r”);fscanf( fp, “%d%d”, &k, &n);printf(“%d%d\n”, k, n);fclose(fp);}
查看答案
搜索结果不匹配?点我反馈