题目内容
下列程序的运行结果为。#includeintmain(void){FILE*fp;inta[10]={11,22,33,44,55,66,77,88,99,100};intb[6],i;fp=fopen("test.dat","wb");fwrite(a,sizeof(int),10,fp);fclose(fp);fp=fopen("test.dat","rb");fread(b,sizeof(int),6,fp);fread(b+2,sizeof(int),4,fp);fclose(fp);for(i=0;i<6;i++)printf("%d",b[i]);return0;}
查看答案
搜索结果不匹配?点我反馈
更多问题