下述程序向文件输出的结果是______。 includevoid main(){FILE *fp=fopen("TESY","wb") 下述程序向文件输出的结果是______。 #include<stdio.h> void main() { FILE *fp=fopen("TESY","wb"); fprintf(fp,"%d%5.0f%c%d",58,76273.0,'-',2278); fclose(fp); }A.58 76273-2278B.5876273.000000-2278C.5876273-2278D.因文件为二进制文件而不可读

下述程序向文件输出的结果是______。 includevoid main(){FILE *fp=fopen("TESY","wb")

下述程序向文件输出的结果是______。 #include<stdio.h> void main() { FILE *fp=fopen("TESY","wb"); fprintf(fp,"%d%5.0f%c%d",58,76273.0,'-',2278); fclose(fp); }

A.58 76273-2278

B.5876273.000000-2278

C.5876273-2278

D.因文件为二进制文件而不可读


相关考题:

有以下程序 include main(){FILE *fp;int i; char ch[]="abcd",t; fp=fopen("abc.dat" 有以下程序 #include <stdio.h> main() {FILE *fp; int i; char ch[]="abcd",t; fp=fopen("abc.dat","wb++"); for(i=O;i<4;i++)fwrite(ch[i],1,1,fp); fseek (fp,-2L,SEEK_END); fread (t,1,1,fp); fclose (fp); printf ("%c\n",t); } 程序执行后的输出结果是______。A.dB.cC.bD.a

下述程序向文件输出的结果是_______。includevoid main(){ FILE*fp=fopen("TEST","wb") 下述程序向文件输出的结果是_______。 #include<stdio.h> void main() { FILE*fp=fopen("TEST","wb"); fprintf(fp,"%d%5.of%c%d",58,76273.0,'-'2278); fclose(fp); }A.5876273-2278B.5876273.000000-2278C.5876273-2278D.因文件为二进制文件而不可读

下述程序文件输出的结果是______。ineludevoid main(){FILE*fp=fopen("TEST","wb");fpr 下述程序文件输出的结果是______。 #inelude<stdio.h> void main() { FILE*fp=fopen("TEST","wb"); fprintf(fp,"%d5.of%c%d",58,76273.0,'-',2278); fclose(fp); }A.58 76273-2278B.5876273.000000-2278C.5876273-2278D.因文件为二进制文件而不可读

若有如下程序: #include"stdio.h" void main() {FILE *fp; fp=fopen("test","wb"); fprintf(fp,"%d%.1f,%c%c",5,238.41,'B','h'); fclose(fp); } 则程序运行后向文件输出的结果是( )。A.5238.41BhB.5238.4,BhC.5,238.4,B,hD.5238.41Bh

有以下程序:includemain(){ FILE*fp;int i;char ch[]="abcd",t;fp=fopen("abc.dat","w 有以下程序: #include <stdio.h> main() { FILE *fp; int i; char ch[]="abcd",t; fp=fopen("abc.dat","wb+"); for(i=0;i<4;i++)fwrite(ch[i]1,1,fp); fseck(fp,-2L,SEEK_END) ; fread(t,1,1,fp); felose(fp); printf("%c\n",t); } 程序执行后的输出结果是( )。A.dB.cC.bD.a

下述程序向文件输出的结果是______。includevoid main(){FILE*fp=fopen("TEST","wb"); 下述程序向文件输出的结果是______。 #include<stdio.h> void main() { FILE*fp=fopen("TEST","wb"); fprintf(fp,"%d%5.0f%c%%d",58,76273.0,∵,2278); fclose(fp); }A.58 76273-2278B.5876273.000000-2278C.5876273-2278D.因文件为二进制文件而不可读

下述程序向文件输出的结果是 ______。includevoid main(){ FILE*fp=fopen("TEST","wb") 下述程序向文件输出的结果是 ______。#include<stdio.h>void main(){ FILE*fp=fopen("TEST","wb"); fprintf(fp,"%%5.0f%c%d",58,76273.0'-',2278); fclose(fp);}A.58 76273-2278B.5876273.000000-2278C.5876273-2278D.因文件为二进制文件而不可读

若有如下程序: #include"stdio.h" void main() {FILE *fp; fp=fopen("test","wb") fprintf(fp,"%d%.1f,%c%c",5,238.41,'B','h'); fclose(fp); } 则程序运行后向文件输出的结果是( )A.5 238.41 B hB.5238.4,BhC.5,238.4,B,hD.5238.41Bh

在C中,打开文件的程序段中正确的是A.#include <stdio.h> FILE *fp; fp=fopen("file1.c","WB");B.#include <stdio.h> FILE fp; fp=fopen("file1.c","w");C.#include <stdio.h> FILE *fp; fp=fopen("file1.c","w");D.#include <string.h> FILE *fp; fp=fopen("file1.c","w");