• 2022-06-09
    以下程序运行后的输出结果是123456,请判断对和错 。#include <;stdio.h>;void main(){ FILE *fp; int x[6]={1,2,3,4,5,6},i;fp=fopen("test.dat","wb");fwrite(x,sizeof(int),3,fp);rewind(fp);fread(x,sizeof(int),3,fp);for(i=0;i<;6;i++)printf("%d",x[i]);printf("\n");fclose(fp);}[/i]
  • 举一反三